Skip to content

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-learn by default); hwn learn check runs 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). Also check --watch (re-check on save and move on), progressive hint, 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 from docs/learn/lab.py into the package so the docs and hwn learn share one copy. The docs lessons now import it instead of asking you to download lab.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 FILE appends everything received, framed per session, with optional per-line --timestamps. -b auto runs autobaud first. Also available as hwntools.console.Console.
  • unpack(force=True) and hwn fw unpack|analyze --force redo an earlier extraction. Only directories created by unpack() (marked with .hwntools/unpack.json) are ever cleared; other non-empty directories are refused even with force.
  • uart.looks_like_console() and autobaud(stop_on_clean=True); hwn autobaud --all keeps trying every rate.
  • UnpackResult.notes and AnalysisResult.notes for informational messages.

Fixed

  • autobaud stops as soon as a rate yields clean console text. Short replies at the right rate (a bare prompt or banner) could score just under stop_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 --tree list 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 from warnings to notes; 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

  • glitch module (GlitchSweep, ChipWhisperer adapter) and the chipwhisperer extra. 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, spiflash and tools are 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-style log with progress lines.
  • Tubes with a common API: serial (pyserial, optional extra), remote (TCP, optional telnet IAC stripping) and process.
  • UBoot: autoboot interrupt, prompt detection, commands, env read/write, saveenv(force=True), resumable md.b dumps 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.autobaud for live ports and autobaud_from_capture via baudhound.
  • OpenOCD TCL RPC client and Flashrom wrapper with double-read verification.
  • firmware: entropy, signature scanning, carving, multi-backend unpack() (native unblob, unblob in Docker, binwalk v2/v3, pure-Python fallback with path-traversal and decompression-bomb guards) and analyze() (fwsift + bootlint).
  • tools: wrappers for the fwsift, bootlint, baudhound and mcpwarden CLIs.
  • glitch.GlitchSweep with 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.
  • hwn CLI: uboot dump|env, autobaud, hexdump, entropy, sigs, fw unpack|analyze.