rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Gladess1102/legacy-firmware-reversing
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A field-tested Agent Skill + DSH plugin for reverse engineering, localizing, and safely re-flashing black-box legacy embedded firmware.
Distilled from a multi-agent, 26-firmware-cycle live campaign against a 2004 Sharp MP-B300 (SigmaTel STMP3560 SoC · Motorola DSP56004 core · Sanyo LV24002 FM tuner) — a device with no source code, no public flashing docs, and a vendor that no longer exists.
中文说明(README.zh-CN.md) · CREDITS · License: MIT Questions, bugs, and "it stopped booting" → Issues. Include the device, the vendor tool chain, and which safety gate you were at. Reports of a failed flash are read first.
├── SKILL.md Agent Skill entry (open Agent-Skills frontmatter format)
├── references/ Deep-dive guides for the five methodology pillars
│ ├── protocol_and_safe_flashing.md BOT short-packet trap, sector-tail integrity, zero-brick gates
│ ├── font_and_resource_injection.md 24-bit resource tree, private glyph dictionary, GB2312 full injection
│ ├── dsp_and_jit_emulation.md DSP56004 disasm, surrogate stubs, peripheral mocking, whole-memory diff
│ ├── hardware_vs_software_falsification.md single-variable falsification, the do-a0 trap, 4-step hardware-boundary test
│ └── multi_agent_collaboration_protocol.md PROJECT-STATE.md single-source-of-truth discipline
├── templates/
│ ├── PROJECT-STATE.template.md multi-agent single source of truth
│ ├── EXPERIMENTS.template.md falsification logbook discipline
│ ├── safe_flasher.py zero-brick flashing skeleton (asserts BEFORE touching the device)
│ └── surrogate_stub.S DSP56300 stub template (div/message-log/blanket-rts) + known landmines
├── package.json dsh-fw-recon — installable DSH plugin package (dsh.bundle.patch)
├── cordis.patch.yml bundle patch: mounts the plugin when installed
├── lib/core.js safety gate / twin-image diff / experiment formatter (pure functions)
├── lib/index.js cordis service registration
├── bin/cli.js standalone CLI: fw-recon check|diff|log
├── case-studies/MP-B300.md the campaign this came from
└── CREDITS.md real-name attributions (see below)
Copy or symlink this repo into your skills directory, or just feed SKILL.md to your agent
as context when facing a black-box firmware task. The references are loaded on demand.
# installs the package and mounts it through its bundled cordis.patch.yml
dsh plugin --profile <profile> add github:Gladess1102/legacy-firmware-reversing
# from a local checkout
dsh plugin --profile <profile> add /absolute/path/to/legacy-firmware-reversing
Desktop App users: since DSH 0.2.1-rc.2 the CLI hard-rejects the
desktopprofile (profile "desktop" is managed exclusively by the Electron application), sodsh plugin --profile desktop …cannot work. Install through the App's GUI plugin page instead, or runpnpm addinside~/.dsh/profiles/desktopand add the package to that profile'sdsh.profile.bundles. Restart the App afterwards either way.
Restart DSH afterwards. The plugin registers an fw-recon cordis service for other plugins
to consume via ctx.get("fw-recon"); it does not add tools to the model's tool list. The CLI
below works with or without DSH.
Experiment logging writes into the configured workDir, which is unset by default — no
directory is ever created on your Desktop. Set FW_RECON_WORKDIR or fill in the plugin's
settings card before the first logExperiment.
# safety gate before any flash — asserts size, protected pages, sector-tail whitelist
fw-recon check --img new.bin --baseline factory.bin
# twin-image diff, sector tails stripped so code diffs stay clean
fw-recon diff v10.bin v27.bin --strip
# falsification logbook (enforces expected-before-observed discipline)
fw-recon log --id E27 --hypothesis "upper-limit checks gate the mute" \
--action "NOP 2 jlt at 0x16b03/0x16b2d" \
--expected "cliff moves above 108MHz" \
--observed "cliff still at 90.0, boot normal" \
--verdict falsified
Full campaign log: case-studies/MP-B300.md.
This stands on real people's work: mborgerson (DSP56300 JIT emulator), Ivan Zupan (Rockbox LV24020LP driver), the Rockbox community (hosting Sanyo's AN2400S04 appnote), and public SigmaTel/Sanyo documentation — plus three AI agents (DSH/DeepSeek, Antigravity/Gemini, ZCode/GLM) and one human operator who ran every experiment. Full real-name credits: CREDITS.md — please keep them intact in forks.
gladess (小G) — device owner, campaign lead, and the human hands behind all 26 flash cycles (GitHub: Gladess1102). The three AI agents (DSH/DeepSeek, Antigravity/Gemini, ZCode/GLM) did the analysis; every brick-risk decision and every listening test was his. Full team credits in CREDITS.md.
MIT — see LICENSE. Not affiliated with Sharp, SigmaTel/Freescale, or Sanyo. Vendor documents are cited, not redistributed.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。