Add 5 USB attack modules: HID injection, gadget emulation, JTAG bridge, RNDIS, sniffer

- HID Inject: USB keyboard/mouse emulation with configurable payloads and 50ms inter-key delays
- USB Gadget: Emulate mass storage, CDC/ACM, HID composite, RNDIS, MTP device classes to bypass host filters
- JTAG USB Bridge: Tunnel JTAG/SWD debug port over USB for OpenOCD/GDB-compatible debugging
- RNDIS Bridge: Virtual ethernet over USB with DHCP server at 192.168.7.1 for host network pivoting
- USB Sniffer: Monitor and log USB traffic from connected devices with filtering and hex payload capture

Brings toolkit to 30 total modules organized into 7 categories. All USB modules are manual-trigger only.
This commit is contained in:
Claude
2026-09-24 02:49:03 +00:00
parent fdbd712d41
commit 0ec3962a53
7 changed files with 395 additions and 1 deletions

View File

@@ -33,14 +33,20 @@ OBD/USB port, a PC, smart appliances.
| **Scope** | Simple **ASCII oscilloscope** — sample GPIO at ~100kHz, display waveform, spot edges and DC bias. |
| **Wizard** | **Two-wire protocol auto-detect** — sniff I2C/SWD on pin pairs, register read/write on found slave. |
| **Settings**| Persist configuration (scan delay, voltage thresholds, timeouts, baud list) to NVS. JSON export/import. |
| **HID Inject**| USB HID keyboard/mouse emulation — inject keystrokes, mouse clicks into any host that plugs in. Configurable payloads with 50ms inter-key delay. |
| **USB Gadget**| Emulate different USB device classes (mass storage, CDC/ACM, HID, RNDIS, MTP) to bypass host device filters and detection. |
| **JTAG USB**| Tunnel JTAG/SWD debug port to host over USB — expose Cardputer as USB debugger. OpenOCD/GDB-compatible. |
| **RNDIS** | Virtual ethernet over USB — assign 192.168.7.1 IP, DHCP server, pivot to host network for scanning/attacks. |
| **USB Sniffer**| Monitor and capture USB traffic from connected devices — filter by class, log packets with timestamps and hex payloads to `/logs/usb_*.log`. |
## 25 modules total
## 30 modules total
**Discover**: Pin Scan, V-Sense, USB Enum, CAN Bus, Wizard
**Sniff & Replay**: UART Sniff, UART+, Protocol, Scope
**Dump & Export**: Bus Dump, Logger, Exfil
**Analyse**: Crypto Lab, MemSearch
**Inject & Test**: Injector, DefCred
**USB Attacks**: HID Inject, USB Gadget, JTAG USB, RNDIS, USB Sniffer
**System**: Theme, Settings
### Heavy exploitation (authorized use only)