An autonomous pipeline for reverse engineering binaries into structured C++ code and extracting embedded assets.
- Automated Decompilation: Uses Ghidra to export high-level C++ with RTTI and class recovery.
- Code Reconstruction: Groups decompiled functions into per-class .hpp/.cpp files.
- Asset Extraction: Mines embedded images, audio, and data using binwalk, with organization.
- No Build Required: Focuses on analysis, not compilation.
-
Clone the repo:
git clone <your-repo-url> cd reverse-engineering-factory
-
Install dependencies:
pip install -r requirements.txt brew install binwalk # For asset extraction -
Download Ghidra 11.2:
./scripts/download_ghidra.sh
-
Run on a binary:
python bin/reverse.py /path/to/binary
Outputs will be in targets/binary_name/.
bin/: Entry scriptsfactory/core/: Core modules (decompilation, reconstruction, extraction)factory/ghidra_scripts/: Custom Ghidra scriptsdocs/: Documentationexamples/: Sample outputstests/: Unit tests
See CONTRIBUTING.md.
MIT License - see LICENSE. /Volumes/Samples/_Projects/NI-Revers_Factory/README.md