API reference¶
Generated from the docstrings in the source code. from hwntools import * brings the most
common names into scope, like from pwn import * does in pwntools; everything else lives in
the submodules below.
| Module | What it does |
|---|---|
hwntools |
the names exported by from hwntools import * |
hwntools.tubes |
the Tube API with serial, remote and process |
hwntools.uboot |
drive a U-Boot console; md.b and printenv parsers |
hwntools.linux_shell |
log in, run commands and move files over a Linux console |
hwntools.uart (experimental) |
baud rate detection |
hwntools.openocd (experimental) |
OpenOCD TCL RPC client |
hwntools.spiflash (experimental) |
flashrom wrapper |
hwntools.firmware |
entropy, signatures, carving, unpack() and analyze() |
hwntools.tools (experimental) |
wrappers for the Reflex Rust CLIs |
hwntools.sim |
simulated U-Boot and Linux consoles |
hwntools.util |
packing, hexdump, xor, cyclic patterns, CRCs |
hwntools.context, hwntools.log |
global settings and pwntools-style logging |
hwntools.exceptions |
the exception hierarchy |