Scripts for setting up and using a matching-decompilation toolkit on Debian/Ubuntu. Contains no game code.
| File | Purpose |
|---|---|
install-debian.sh |
Installs JDK 21, Ghidra (SHA-256 verified), radare2, MIPS/PPC cross gcc+binutils, clang, a Python venv (splat64[mips], capstone, lief, pyelftools), m2c, asm-differ, decomp-permuter, jadx, ilspycmd |
env.sh |
source env.sh to set JAVA_HOME/GHIDRA_HOME/PATH and aliases (m2c, asmdiff, permuter). Root via DECOMP_TOOLS (default ~/tools) |
decompile.sh |
Ghidra headless: ./decompile.sh prog.o [func ...] prints C |
ghidra/DecompileAll.java |
Headless script used by decompile.sh; ghidra/Decomp.java is the minimal original example |
match-check.sh |
./match-check.sh guess.c target.o mips-linux-gnu-gcc -O2 → MATCH or a disassembly diff |
GHIDRA_DATE=YYYYMMDD GHIDRA_SHA256=<from release page> ./install-debian.sh
source env.sh
./decompile.sh some_object.o my_func
./match-check.sh guess.c target.o mips-linux-gnu-gcc -O2Only use these on software you own / have rights to analyze. MIT licensed.