We're excited to announce the latest release of PEAnalyzer, a Python module to analyze Windows Portable Executable (PE) files!
Features
This release includes the following features:
- Analyze PE files for the following information:
- File header
- Optional header
- Sections
- Imports
- Exports
- Easy-to-use `PEAnalyzer` class that returns analysis data in JSON format
- Pretty-printing of the information when used with the `print()` function
- Command-line interface to analyze PE files by providing a file path
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:
python
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:
python
print(analyzer)
To get the analysis data as a JSON object, call the `analyze()` method:
python
analysis_data = analyzer.analyze()
print(analysis_data)
Bug Reports and Feature Requests
Please submit bug reports and feature requests through the GitHub Issues page. We appreciate your feedback and contributions!
License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
**Full Changelog**: https://github.com/DJStompZone/PE-Analyzer/commits/v0.1.2