ghidralyzer is a script that automates the process of creating a project, importing and analyzing a binary in Ghidra from the command line. If the provided target is a project file (.gpr
), it will simply load the existing project.
- Cross-platform
- No external dependencies
- Supports creating a temporary project
Specify the GHIDRA_PATH
:
GHIDRA_PATH = '/path/to/ghidra_11.0.3_PUBLIC' # CHANGE THIS
Create a project in the target path, import and analyze a binary:
python3 ghidralyzer.py /path/to/binary
Create a temporary project in the TEMP_DIR
, import and analyze a binary:
python3 ghidralyzer.py /path/to/binary --temp
Load an existing project:
python3 ghidralyzer.py /path/to/project.gpr
- liba2k - inspiration and code reference