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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pe_analyzer-0.1.2.tar.gz.

File metadata

  • Download URL: pe_analyzer-0.1.2.tar.gz
  • Upload date:
  • Size: 140.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for pe_analyzer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 633cd1e43e2e38106fbaece95df402854eaf17ea63e2d57d2e3f6cc26920f370
MD5 df0d00ffffb7ff8fb584e1e3681e474c
BLAKE2b-256 dffb5dfdb0095863fc4d6565c6538b7e7f0ba52dbdc633a25f008bbee142e23b

See more details on using hashes here.

File details

Details for the file pe_analyzer-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pe_analyzer-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 141.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for pe_analyzer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 924ae34515b250743aced7b53dff97caa68f8b2d2faa7361b5ac2d4266f66ed7
MD5 0620688fb06887cabf02ae914da496d9
BLAKE2b-256 07781d207b7c8badfb01fde880a9c132825cc5180a618e20ea5307a1512aa0cc

See more details on using hashes here.

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