Files
Dan Guido 07277a6b5b Add ghidra-headless plugin (#8)
* Add ghidra-headless plugin imported from mitsuhiko/agent-stuff

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix review findings in ghidra-headless plugin

- Fix unbound GHIDRA_HOME variable crash in find-ghidra.sh (set -u)
- Set executable bits on shell scripts (lost during API fetch)
- Standardize escapeJson across all Java scripts to handle \b, \f,
  and non-ASCII characters consistently
- Fix SKILL.md: clarify ExportAll scope (excludes calls/symbols),
  note strings output format difference
- Add -maxdepth 5 to fallback find to bound search time

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix empty SCRIPT_ARGS array crash on macOS Bash 3.2

Bash 3.2 (shipped as /bin/bash on macOS) treats "${EMPTY_ARRAY[@]}"
as an unbound variable under set -u. Use the ${arr[@]+"${arr[@]}"}
idiom to safely expand empty arrays.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 01:56:26 -05:00
..
2026-02-12 01:56:26 -05:00
2026-02-12 01:56:26 -05:00

Ghidra Headless

Reverse engineer binaries using Ghidra's headless analyzer. Decompile executables, extract functions, strings, symbols, and analyze call graphs without GUI.

Installation

/plugin install ghidra-headless

Prerequisites

  • Ghidra installed (brew install --cask ghidra on macOS)
  • Java (OpenJDK 17+)

What It Covers

  • Headless binary analysis via analyzeHeadless wrapper
  • Decompilation to C pseudocode
  • Function extraction with signatures and call relationships
  • String and symbol extraction
  • Call graph analysis
  • Architecture-specific analysis (x86, ARM, MIPS, PowerPC)
  • Batch analysis of multiple binaries

Credits

Imported from mitsuhiko/agent-stuff by Armin Ronacher. Licensed under Apache-2.0.