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

please make sure to download the latest version, currently 0.1.1

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.2.0.tar.gz (174.5 kB view details)

Uploaded Source

Built Distribution

static_analysis_script-0.2.0-py3-none-any.whl (173.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: static_analysis_script-0.2.0.tar.gz
  • Upload date:
  • Size: 174.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 84f56d459772b5ea54d132b8bd9e62731cc2300128bebeb725a09315c37ae1ae
MD5 ceb7e6f096840d207ff56e4c4c704aad
BLAKE2b-256 b697f1933a53180b8984048fec3b1c4af5dc47d04d6a75f421dc60e76b847a85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for static_analysis_script-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 222c1a264ac6ad52324357c0ebe529b622d353e0c4b23c1a8d11631f753597dd
MD5 c454eb6ff004efc5acbcb5ccc6397eaf
BLAKE2b-256 ec664e480d646c7d5ccc1f2c8bb74980445c4e1d177f1bb995ecb4a60b8a4b66

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