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 |
|---|---|---|---|
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:
Or join my Discord server here:
License
This project is licensed under the MIT License. See the LICENSE file for more information.
Metadata
Release files for pe-analyzer 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pe_analyzer-0.1.2.tar.gz | 140.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pe_analyzer-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 282.0 kB
Release files / pe_analyzer-0.1.2.tar.gz
| Download URL | pe_analyzer-0.1.2.tar.gz |
|---|---|
| Size | 140.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
633cd1e43e2e38106fbaece95df402854eaf17ea63e2d57d2e3f6cc26920f370
|
|
BLAKE2b-256 checksum How to use checksums |
dffb5dfdb0095863fc4d6565c6538b7e7f0ba52dbdc633a25f008bbee142e23b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Release files / pe_analyzer-0.1.2-py3-none-any.whl
| Download URL | pe_analyzer-0.1.2-py3-none-any.whl |
|---|---|
| Size | 141.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
924ae34515b250743aced7b53dff97caa68f8b2d2faa7361b5ac2d4266f66ed7
|
|
BLAKE2b-256 checksum How to use checksums |
07781d207b7c8badfb01fde880a9c132825cc5180a618e20ea5307a1512aa0cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|