Headless Scripts for Ghidra's Headless Analyzer written in Python.
disassembler.py
disassembles all the functions recognized by Ghidra, and writes them into file.
$ analyzeHeadless <PROJECT_PATH> <PROJECT_NAME> -process <TARGET_FILENAME> -scriptPath <PATH_TO_YOUR_SCRIPT> -postScript disassembler.py <OUTPUT_FILEPATH>
decompiler.py
decompiles all the functions recognized by Ghidra, and writes them into file.
$ analyzeHeadless <PROJECT_PATH> <PROJECT_NAME> -process <TARGET_FILENAME> -scriptPath <PATH_TO_YOUR_SCRIPT> -postScript decompiler.py <OUTPUT_FILEPATH>