pyghidra¶
Category: Reverse Engineering
Homepage: https://github.com/NationalSecurityAgency/ghidra
Vendor: NationalSecurityAgency
License: Apache-2.0
Source: Python
Profiles: Full, Basic
File Extensions: .exe, .dll, .elf
Tags: reverse-engineering, decompiler, scripting
The PyGhidra Python library, originally developed by the Department of Defense Cyber Crime Center (DC3) under the name "Pyhidra", is a Python library that provides direct access to the Ghidra API within a native CPython 3 interpreter using JPype. PyGhidra contains some conveniences for setting up analysis on a given sample and running a Ghidra script locally. It also contains a Ghidra plugin to allow the use of CPython 3 from the Ghidra GUI.
Tips¶
Runs Ghidra headless from CPython. Set GHIDRA_INSTALL_DIR to the Ghidra folder first. Used by ghidrecomp and ghidriff. Excluded from the Basic profile.
Usage¶
python -c 'import pyghidra; pyghidra.start()'