Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Decompiles, lists functions, strings, symbols, and call graphs of binaries via Ghidra's headless analyzer, without a GUI.
26% 96%+70 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 6 of 23 without it.
When analyzing binary auth_daemon using the headless script, I want to keep the underlying Ghidra project directory on disk after execution instead of letting the script clean it up automatically. Output goes to ./auth_out. What flag manages this?
Includes --keep-project flag
3 of 3 safety checks passed
Perform automated reverse engineering using Ghidra's analyzeHeadless tool. Import binaries, run analysis, decompile to C code, and extract useful information.
| Task | Command |
|---|---|
| Full analysis with all exports | ghidra-analyze.sh -s ExportAll.java -o ./output binary |
| Decompile to C code | ghidra-analyze.sh -s ExportDecompiled.java -o ./output binary |
| List functions | ghidra-analyze.sh -s ExportFunctions.java -o ./output binary |
| Extract strings | ghidra-analyze.sh -s ExportStrings.java -o ./output binary |
| Get call graph | ghidra-analyze.sh -s ExportCalls.java -o ./output binary |
| Export symbols | ghidra-analyze.sh -s ExportSymbols.java -o ./output binary |
| Find Ghidra path | find-ghidra.sh |
brew install --cask ghidraThe skill automatically locates Ghidra in common installation paths. Set GHIDRA_HOME environment variable if Ghidra is installed in a non-standard location.
./scripts/ghidra-analyze.sh [options] <binary>
Wrapper that handles project creation/cleanup and provides a simpler interface to analyzeHeadless.
Options:
-o, --output <dir> - Output directory for results (default: current dir)-s, --script <name> - Post-analysis script to run (can be repeated)-a, --script-args <args> - Arguments for the last specified script--script-path <path> - Additional script search path-p, --processor <id> - Processor/architecture (e.g., x86:LE:32:default)-c, --cspec <id> - Compiler spec (e.g., gcc, windows)Next to this one in the catalogue, plus more from the same author.