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
16 lines
548 B
Bash
Executable File
16 lines
548 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run binwalk v3 against an artifact. Extraction (-e) output lands in ./output/.
|
|
#
|
|
# Usage:
|
|
# ./re-binwalk <file-in-artifacts> [binwalk options...]
|
|
# ./re-binwalk dump.bin -e # scan + carve/extract embedded payloads
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
if [ "$#" -lt 1 ]; then
|
|
echo "usage: $0 <file-in-artifacts> [binwalk options...]" >&2
|
|
exit 2
|
|
fi
|
|
ART="$1"; shift
|
|
exec docker compose run --rm -T --entrypoint /bin/bash \
|
|
tools -lc 'cd /data/output && exec binwalk "$@"' _ "$@" "/data/artifacts/${ART}"
|