Changelog¶
All notable changes to this project are documented here. The format follows Keep a Changelog and the project uses Semantic Versioning.
[0.3.0] - 2026-12-05¶
Added¶
hwn learn: an interactive terminal tutorial on the built-in simulator, like rustlings or vimtutor. Nine lessons (0 to 8, the same as the Learn track of the docs) each create an exercise file with TODOs in a workspace (./hwn-learnby default);hwn learn checkruns it in a child process against a simulated device and grades the result (random baud rates, serial numbers and reset vectors where a fixed answer could be copied). Alsocheck --watch(re-check on save and move on), progressivehint,solution(asks first),reset,hwn learn console(stop U-Boot by hand, lesson 3) and progress saved in.hwn-learn.json. Offline; lesson 6 is skipped on Windows (needs/bin/sh).hwntools.learn.lab: the Learn track's practice device (synthetic router firmware,sf read, loose cable, garbling UART, OpenOCD stand-in, CTF board), moved fromdocs/learn/lab.pyinto the package so the docs andhwn learnshare one copy. The docs lessons now import it instead of asking you to downloadlab.py.hwn console: an interactive serial console for real ports, pyserial URLs,tcp:HOST:PORT(ser2net) and the simulator (--sim). Keys are sent one by one, so Ctrl-C reaches the target; Ctrl-] quits; Ctrl-T opens a small menu (send BREAK, hex view, local echo).--log FILEappends everything received, framed per session, with optional per-line--timestamps.-b autoruns autobaud first. Also available ashwntools.console.Console.unpack(force=True)andhwn fw unpack|analyze --forceredo an earlier extraction. Only directories created byunpack()(marked with.hwntools/unpack.json) are ever cleared; other non-empty directories are refused even withforce.uart.looks_like_console()andautobaud(stop_on_clean=True);hwn autobaud --allkeeps trying every rate.UnpackResult.notesandAnalysisResult.notesfor informational messages.
Fixed¶
autobaudstops as soon as a rate yields clean console text. Short replies at the right rate (a bare prompt or banner) could score just understop_score=0.95, so the scan used to try all 18 rates (about 27 s) even after finding the right one.UnpackResult.tree()/hwn fw unpack --treelist every entry under its parent directory (the listing used to follow breadth-first walk order, so the indentation was misleading).- Informational messages such as "U-Boot env found at 0x1000" are printed as
info:and moved fromwarningstonotes;warning:is kept for real problems. - The "tool not found" message for fwsift, bootlint, baudhound and mcpwarden suggests
cargo install --git https://github.com/reflex-hs/<tool>, which works today (the tools are not on crates.io yet).
[0.2.0] - 2026-12-03¶
Removed¶
glitchmodule (GlitchSweep, ChipWhisperer adapter) and thechipwhispererextra. It was only a parameter-sweep skeleton untested on real glitch hardware; fault injection is better served by hardware-specific tooling for now.
Changed¶
uart,openocd,spiflashandtoolsare marked experimental until validated on real hardware.- Tests for autobaud and process tubes are robust on slow and Windows CI runners.
[0.1.0] - 2026-12-03¶
Added¶
context(log level, timeouts, arch/endianness, serial defaults) and pwntools-stylelogwith progress lines.- Tubes with a common API:
serial(pyserial, optional extra),remote(TCP, optional telnet IAC stripping) andprocess. UBoot: autoboot interrupt, prompt detection, commands, env read/write,saveenv(force=True), resumablemd.bdumps with retries, bootargs injection,audit_env()via bootlint.LinuxShell: prompt classification, login, explicit default-credential check, marker-framed commands, file exfiltration (base64/hexdump/od) and upload (base64/printf).uart.autobaudfor live ports andautobaud_from_capturevia baudhound.OpenOCDTCL RPC client andFlashromwrapper with double-read verification.firmware: entropy, signature scanning, carving, multi-backendunpack()(native unblob, unblob in Docker, binwalk v2/v3, pure-Python fallback with path-traversal and decompression-bomb guards) andanalyze()(fwsift + bootlint).tools: wrappers for the fwsift, bootlint, baudhound and mcpwarden CLIs.glitch.GlitchSweepwith CSV/JSONL logging and an optional ChipWhisperer adapter.sim: fake U-Boot and Linux shell devices, in-process or on a pseudo-terminal.util: packing,flat,hexdump,xor,cyclic, CRC helpers.hwnCLI:uboot dump|env,autobaud,hexdump,entropy,sigs,fw unpack|analyze.