ChipBench packages Ghidra, radare2, binwalk, chip-programming tools,
simulators, and firmware-unpacking utilities into one reproducible container
for analyzing raw chip dumps entirely from the command line or an AI CLI.
Headless Jython scripts drive import, forced-disassembly sweeps, live
queries, and bulk decompilation exports without any GUI.
Derived from a private engagement environment, generalized for public
release under AGPLv3. No engagement-specific artifacts are included.
💘 Generated with Crush
Assisted-by: Crush:glm-5.2
18 lines
629 B
Bash
Executable File
18 lines
629 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# One-shot bulk export of an already-analyzed program to ./output/.
|
|
# Writes <prog>.info.txt, .functions.txt, .strings.txt, .segments.txt,
|
|
# .data.txt, .decompiled.c (one Ghidra run, then grep/read instantly).
|
|
#
|
|
# Usage: ./re-export <program>
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
if [ "$#" -lt 1 ]; then echo "usage: $0 <program>" >&2; exit 2; fi
|
|
PROG="$1"
|
|
exec docker compose run --rm -T \
|
|
--entrypoint /opt/ghidra/support/analyzeHeadless \
|
|
tools \
|
|
/data/work ChipBenchProject \
|
|
-process "$PROG" -noanalysis -readOnly \
|
|
-scriptPath /opt/ghidra-scripts \
|
|
-postScript ExportAll.java
|