Skip to main content

A Python module to analyze Portable Executable (PE) files on Windows systems. It parses and extracts various details about the file header, optional header, sections, imports, and exports. The module provides an easy-to-use class, PEAnalyzer, which returns analysis data in JSON format and supports pretty-printing of the information when used with the print() function.

Project description

PEAnalyzer

A Python module to analyze Portable Executable (PE) files on Windows systems. It parses and extracts various details about the file header, optional header, sections, imports, and exports. The module provides an easy-to-use class, PEAnalyzer, which returns analysis data in JSON format and supports pretty-printing of the information when used with the print() function.

Info Package CI/CD Support
PyPI - Python Version PyPI Test Discord Widget
License PyPI - Wheel Pytest New Github Issue

Installation

To use PEAnalyzer, first, install the pefile library by running:

pip install pefile

Then, download or clone this repository to your project directory.

Usage

To use the PEAnalyzer class, import it from the module and create an instance with the path to the PE file you want to analyze:

from pe_analyzer import PEAnalyzer

file_path = "path/to/your/file.exe"
analyzer = PEAnalyzer(file_path)

To print the analysis data in a human-readable format, use the print() function:

print(analyzer)

To get the analysis data as a JSON object, call the analyze() method:

analysis_data = analyzer.analyze()
print(analysis_data)

Support

You can create a new issue here:

New Github Issue

Or join my Discord server here:

Discord Widget

License

This project is licensed under the MIT License. See the LICENSE file for more information.

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

pe_analyzer-0.1.2.tar.gz (140.8 kB view hashes)

Uploaded Source

Built Distribution

pe_analyzer-0.1.2-py3-none-any.whl (141.2 kB view hashes)

Uploaded Python 3

Supported by

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