Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 672 Bytes

README.md

File metadata and controls

25 lines (14 loc) · 672 Bytes

Headless Scripts

Headless Scripts for Ghidra's Headless Analyzer written in Python.

disassembler

disassembler.py disassembles all the functions recognized by Ghidra, and writes them into file.

Usage

$ analyzeHeadless <PROJECT_PATH> <PROJECT_NAME> -process <TARGET_FILENAME> -scriptPath <PATH_TO_YOUR_SCRIPT> -postScript disassembler.py <OUTPUT_FILEPATH>

decompiler

decompiler.py decompiles all the functions recognized by Ghidra, and writes them into file.

Usage

$ analyzeHeadless <PROJECT_PATH> <PROJECT_NAME> -process <TARGET_FILENAME> -scriptPath <PATH_TO_YOUR_SCRIPT> -postScript decompiler.py <OUTPUT_FILEPATH>