Skip to main content

A utility to perform static analysis on files.

Project description

Static-analysis-script

Welcome to the Static Analysis Script! This Python tool is crafted to extract emails, paths, files, URLs, and IPs from the specified file for analysis.

Purpose

This tool aids in the collection of data essential for static analysis, accelerating the detection of Indicators of Compromise (IOCs) and other potentially malicious activities executed by files.

Installation

Before executing the tool, ensure the necessary packages are installed with the following command:

  pip install static-analysis-script

Usage

to execute the script:
main.py < file_path> < option>

Available options:

-u, -U Show only unique values from the strings

-e, -E Prints out the entropy calculation only

-c, -C Print the cert information including plenty of extra

Analysis of Executables and DLL Files

The tool employs strings.exe to pull strings from executable (EXE) and dynamic link library (DLL) files, analyzing these strings to pinpoint paths, files, IP addresses, and URLs.

Analysis of CSV Files

For Comma-Separated Values (CSV) files, the tool extracts relevant information by directly reading the contents of the files.

Analysis of Word Documents

Utilizing the zipfile library, the tool processes Word documents, extracting embedded emails and URLs from various sections.

Analysis of PDF Files

Currently, analysis of PDF files does not retrieve complete data and is under review for improvements.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

static_analysis_script-0.1.1.tar.gz (174.2 kB view details)

Uploaded Source

Built Distribution

static_analysis_script-0.1.1-py3-none-any.whl (172.9 kB view details)

Uploaded Python 3

File details

Details for the file static_analysis_script-0.1.1.tar.gz.

File metadata

  • Download URL: static_analysis_script-0.1.1.tar.gz
  • Upload date:
  • Size: 174.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for static_analysis_script-0.1.1.tar.gz
Algorithm Hash digest
SHA256 23061bcaa55fde84f2f9c53b36759269678b647a2688276a9dcfc9d753cd0ced
MD5 17b22b469fa4c24c4c9d02ecc13902c3
BLAKE2b-256 069c5f3b9121b2ceff67a7e914e536e18875008c5a25fd62d082f5ad8def439a

See more details on using hashes here.

File details

Details for the file static_analysis_script-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for static_analysis_script-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e13f52f99f2eb9af69b9a6dd5064c55fe5b590ab8acc935fe897251f65a652d5
MD5 1c12b05ec67b1faea8388bc41c7c5360
BLAKE2b-256 039480725f4216508a9c7dcd1c2c0bb60ea5a8592f5a54ca3accb465031ec27f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page