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 | Provenance | Actions |
|---|---|---|---|---|
| pe_analyzer-0.1.2.tar.gz | 140.8 kB | Without provenance | Details for pe_analyzer-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pe_analyzer-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pe_analyzer-0.1.2-py3-none-any.whl |
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
|
Security for pe-analyzer 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.