Gearbox

Exploitation v1.18.12 — Hardware security assessment CLI — orchestrates nmap, Nessus, sslscan, nuclei, Responder, and 20+ tools into structured pentest workflows.
26
Dependencies
7
Phases
255
Catalogue Findings
GB-DISC
Finding Prefix

How It Works

⚠️ Authorized Testing Only

This tool interacts with live systems and must only be used for testing that has been explicitly authorized by the asset owner. Unauthorized use of this tool to probe, scan, exploit, or otherwise interact with systems you do not have written permission to test is illegal under computer fraud and abuse laws (CFAA, CMA, and international equivalents). pr0t31n does not condone or recommend any unauthorized use. Always obtain a signed Rules of Engagement (RoE) or Statement of Work (SoW) before beginning any assessment.

Gearbox is a device and hardware security assessment orchestration engine that evaluates physical interfaces on target devices through a modular, YAML-driven workflow. The operator defines a project configuration file specifying the device under test, its physical interfaces (Ethernet, USB, HDMI, Zigbee, Bluetooth, serial, etc.), and any credentials or scope constraints. Gearbox reads this configuration and automatically selects the appropriate assessment modules for each declared interface from its registry of 60+ security testing modules.

Each interface type maps to a chain of modules executed in sequence. For example, an Ethernet interface triggers network discovery (nmap), traffic capture (tcpdump), DHCP server detection, port scanning, banner grabbing, web application probing, SSL/TLS analysis, SSH auditing, SMB enumeration, NFS/FTP checks, Nuclei vulnerability scanning, and Responder-based credential harvesting. USB interfaces trigger power analysis, HID injection testing (keyboard/mouse emulation), Bash Bunny payload execution, mass storage enumeration, and Ethernet adapter detection. HDMI/video interfaces trigger EDID extraction, DDC/CI probing, HDCP compliance testing, and CEC command injection analysis.

Gearbox persists all findings in a SQLite database (findings.db) with parallel JSON and CSV output in the universal pr0t31n schema. Every interface assessment begins with photographic evidence capture. The tool integrates with Nessus for enterprise vulnerability scanning when available, and emits __GB_LOG__, __GB_FINDING__, and __GB_STATUS__ protocol tokens for real-time monitoring through the Gauntlet management console. Adaptive concurrency automatically scales thread pools based on available CPU and RAM, with runtime monitoring that throttles under resource pressure.

Gearbox supports checkpoint/resume for long-running hardware assessments, allowing interrupted scans to restart from the last completed module. All third-party tool invocations are routed through pr0t31n_tool_runner for execution logging, version capture, and error detection. Network traffic captures are automatically handed to Trawler for passive traffic analysis.

Phase Pipeline

  1. Phase 0 — hardware selection & setup
  2. Phase 1 — discovery (BR/EDR + LE)
  3. Phase 2 — enumeration {mac}
  4. Phase 3 — pairing/SMP {mac}
  5. Phase 4 — sniff + crack {mac}
  6. Phase 5 — active exploitation {mac}
  7. Phase 6 — cleanup (unpair / restore)

Security

Gearbox is a CLI tool managed by Gauntlet. No standalone web interface. Security considerations:

  • Subprocess safety: All 50+ tool invocations use list-based subprocess calls throughout
  • Root required: Many assessment modules (WiFi monitor mode, Bluetooth, USB, traffic capture) require root/sudo
  • Database: SQLite database stores findings, hosts, ports, and configurations — local only

Features

Infrastructure

Photo Evidence
Captures photographic evidence of each physical interface before testing begins, providing visual documentation for the assessment report.
Adaptive Concurrency
Dynamically scales worker thread count based on CPU and RAM utilization, throttling under high resource pressure to prevent system instability.
Checkpoint/Resume
Saves progress to checkpoint.json after each module completes, enabling interrupted assessments to resume from the last successful module.
Ethernet Tap Capture
Three-phase traffic capture (running, boot, shutdown) on passive Ethernet tap interfaces using tcpdump for comprehensive traffic analysis.

Network Assessment

Ethernet Interface Testing
Full network security assessment chain: host discovery, port scanning (nmap), banner grabbing, web probing, SSL/TLS analysis (sslscan/testssl), SSH auditing, Nuclei vulnerability scanning, and credential harvesting (Responder).
SMB/NFS/FTP Enumeration
Enumerates SMB shares and permissions (smbmap), NFS exports, and FTP anonymous access on discovered hosts.
Nessus Integration
Launches and monitors Nessus scans against Ethernet-connected targets, importing results into the unified findings database.
Traffic Analysis
Captures network traffic with tcpdump during device boot, runtime, and shutdown phases. Captured pcaps are automatically analyzed by Trawler.
DHCP Server Detection
Detects rogue DHCP servers on the network segment accessible through the device's Ethernet interface.

Physical Interface

SmartCard Assessment
Smart card reader interface testing including ATR analysis, APDU command probing, and authentication mechanism evaluation.
RFID Sniff & Replay
RFID credential capture and replay attacks using Proxmark3 hardware for access control bypass testing.
Serial/CAN Bus
DB9 serial interface detection with baud rate probing, plus CAN bus traffic analysis and frame injection testing.
JTAG Detection
Automated JTAG test access port (TAP) detection on exposed debug headers for firmware extraction vectors.
SPI Flash Dump
SPI flash memory dumping from exposed chip interfaces for firmware extraction and analysis.

USB Assessment

HID Injection Testing
Tests USB keyboard and mouse emulation attacks, keystroke injection sequences, and key combination exploits.
Bash Bunny Payloads
Executes Bash Bunny payload scripts against the target device's USB interface to test HID and storage attack vectors.
Mass Storage Analysis
Enumerates USB mass storage devices, checks for auto-mount behavior, and tests file system access controls.

Video Interface

EDID Extraction
Reads Extended Display Identification Data from HDMI, DVI, SDI, and DisplayPort interfaces to identify connected display capabilities and potential spoofing vectors.
HDCP Compliance
Tests High-bandwidth Digital Content Protection handshake and key exchange on HDMI/DP interfaces to assess content protection enforcement.
CEC Command Injection
Tests Consumer Electronics Control (CEC) protocol on HDMI interfaces for unauthorized command injection and device control.
DDC/CI Probing
Probes Display Data Channel / Command Interface to test monitor control capabilities and potential information disclosure.

Wireless Assessment

Zigbee Sniffing & Flooding
Passive Zigbee frame capture and active PAN ID conflict flooding to test IEEE 802.15.4 network resilience.
Bluetooth Assessment
Bluetooth Classic and BLE device discovery, service enumeration, and security testing via ubertooth/hcitool/gatttool.
WiFi Assessment
Wireless network discovery, authentication testing, and rogue AP detection on WiFi-enabled device interfaces.
Sub-GHz Radio
Sub-GHz RF signal capture and replay testing for devices using proprietary low-frequency wireless protocols.
UWB Testing
Ultra-Wideband ranging and location system security assessment for UWB-enabled device interfaces.
Z-Wave Assessment
Z-Wave home automation protocol security testing including network key recovery and command injection.
LoRa Testing
LoRa/LoRaWAN long-range IoT protocol security assessment including join procedure and session key analysis.

Use Cases

IoT Device Security Assessment

Evaluate the security posture of an IoT device by testing all its physical interfaces: Ethernet for network vulnerabilities, USB for HID injection, wireless radios for protocol weaknesses, and debug ports for firmware extraction.

Medical Device Penetration Test

Assess medical device hardware security including HDMI display interfaces for data leakage, Ethernet for network attack surface, Bluetooth/BLE for patient data exposure, and serial ports for unauthorized configuration access.

Industrial Control System (ICS) Assessment

Test ICS/SCADA hardware devices across CAN bus interfaces, serial connections, Ethernet network segments, and proprietary wireless protocols to identify control plane vulnerabilities.

Consumer Electronics Security Review

Evaluate smart home devices, set-top boxes, and consumer electronics across HDMI CEC injection, WiFi/Zigbee/Z-Wave protocol security, USB attack vectors, and embedded debug interfaces.

Automotive Security Testing

Assess vehicle electronic control units (ECUs) through CAN bus analysis, Bluetooth infotainment testing, USB HID injection, and cellular/WiFi connectivity evaluation.

Access Control System Testing

Test physical access control hardware including RFID reader bypass via Proxmark3 replay, smart card credential extraction, and network-connected controller vulnerabilities.

CLI Reference

Command Examples

Interactive Mode

sudo python3 gearbox.py

Start in interactive console mode with hardware selection wizard.

With Settings File

sudo python3 gearbox.py --settings settings.json

Run with pre-configured settings (used when managed by Gauntlet).

Third-Party Tool Invocations

Commands and flags used when this tool invokes third-party dependencies during operation.

nmap
Host discovery, port scanning, service detection, and NSE script execution against Ethernet-connected targets
nmap -sV -sC -p- <target>
nmap -sn <subnet>
nuclei
Template-based vulnerability scanning against discovered web services and network endpoints
nuclei -u <url> -t <templates>
sslscan
SSL/TLS cipher suite enumeration and certificate analysis on encrypted services
sslscan <host>:<port>
testssl.sh
Comprehensive TLS/SSL testing including protocol support, cipher strength, and known vulnerabilities
testssl.sh <host>:<port>
tcpdump
Passive network traffic capture during device boot, runtime, and shutdown phases
tcpdump -i <iface> -w <output.pcap>
Responder
LLMNR/NBT-NS/MDNS poisoning for credential harvesting on the target network segment
responder -I <iface> -wrfv
smbmap
SMB share enumeration and permission testing on discovered Windows/Samba hosts
smbmap -H <host>
ssh-audit
SSH server configuration auditing including algorithm support and known vulnerabilities
ssh-audit <host>
gowitness
Headless web screenshot capture for visual documentation of discovered web interfaces
gowitness single <url>
Nessus
Enterprise vulnerability scanning integration for comprehensive network assessment
(API-driven via Nessus REST API)
cec-client
HDMI CEC protocol command injection and device control testing via libcec
cec-client -s -d 1
ddcutil
DDC/CI monitor control probing for display interface security assessment
ddcutil detect
ddcutil getvcp ALL
proxmark3
RFID credential capture, analysis, and replay for access control bypass testing
pm3 -c 'hf search'
pm3 -c 'lf search'
candump/cansend
CAN bus traffic capture and frame injection for automotive/ICS serial interface testing
candump <iface>
cansend <iface> <frame>
tshark
Packet analysis and field extraction
tshark -r <pcap> -T fields -e <field>
ethtool
Ethernet interface capability and link detection
ethtool <iface>
curl
HTTP/HTTPS service probing and web interface detection
curl -sk -D - https://<target>:<port>/
openssl
TLS certificate inspection and cipher testing
openssl s_client -connect <host:port>
openssl x509 -text -noout
shcheck
HTTP security header analysis
shcheck -j <url>
dnsmasq
DHCP/DNS server for network service testing
dnsmasq --no-daemon --dhcp-range=<range>
hcitool
Bluetooth Classic device scanning and enumeration
hcitool scan
hcitool info <bdaddr>
bluetoothctl
Bluetooth device management and pairing
bluetoothctl scan on
ubertooth-btle
Bluetooth Low Energy packet sniffing via Ubertooth
ubertooth-btle -f -c <pcap>
airmon-ng
WiFi monitor mode interface management
airmon-ng start <iface>
airodump-ng
WiFi network discovery and client enumeration
airodump-ng <mon_iface> -w <prefix> --output-format pcap,csv
hashcat
WiFi WPA/WPA2 handshake cracking
hashcat -m 22000 <hccapx> <wordlist>
rtl_433
Sub-GHz RF signal decoding (ISM band)
rtl_433 -f <freq> -S all
opensc-tool
Smart card reader and card detection
opensc-tool --list-readers
pkcs15-tool
PKCS#15 smart card data extraction
pkcs15-tool --list-certificates

Finding Nomenclature

Gearbox findings use the GB- prefix for catalogue IDs (e.g., GB-ETH-001, GB-USB-001, GB-HDMI-001). Findings are organized by the interface type that triggered the detection:

  • GB-ETH-* — Ethernet/network interface findings (open ports, vulnerable services, weak SSL/TLS, credential harvesting)
  • GB-USB-* — USB interface findings (HID injection success, mass storage auto-mount, power analysis anomalies)
  • GB-HDMI-* / GB-VID-* — Video interface findings (HDCP bypass, CEC injection, EDID spoofing vectors)
  • GB-ZB-* — Zigbee protocol findings (key recovery, PAN ID conflicts)
  • GB-BT-* — Bluetooth findings (pairing weaknesses, KNOB, BIAS)
  • GB-SER-* — Serial/CAN bus findings (unauthenticated console access, CAN frame injection)
  • GB-RF-* — Sub-GHz/LoRa/RFID/Z-Wave radio findings

All findings are persisted in both SQLite (findings.db) and the universal JSON/CSV schema. Risk levels follow the standard CRITICAL/HIGH/MEDIUM/LOW/INFO scale. Each finding includes the interface name, module that generated it, and photo evidence path when available.

Action Items

Gearbox emits __CRUCIBLE_ACTION_ITEM__ tokens during assessment to flag items requiring immediate operator attention or manual follow-up. Common action items include:

  • Manual verification required — When an automated module detects a potential vulnerability that requires physical interaction or visual confirmation (e.g., HDMI output content inspection, USB device behavior observation)
  • Credential harvested — When Responder or another credential harvesting module captures authentication material that should be tested for reuse
  • Firmware extraction opportunity — When JTAG or SPI flash interfaces are detected and accessible, flagging the device for deeper firmware analysis
  • Network segmentation violation — When traffic analysis reveals the device communicating with unexpected network segments or external hosts
  • Photo evidence needed — When the photo module cannot automatically capture interface documentation and manual photography is required

Output Files

FileFormatDescription
meta.json JSON Tool identity and engagement metadata
findings.json JSON Universal findings array v1.1
findings.csv CSV CSV mirror of findings
summary.json JSON Aggregated statistics
scan.log TXT Human-readable timestamped log
scan.log.json JSONL Machine-readable JSON log events
errors.log TXT ERROR-level entries only
findings_catalogue.json JSON Findings catalogue

Invocation Methods

MethodUsage
CLI — Direct cd /opt/pr0t31n/Gearbox && python3 gearbox.py

Run directly with command-line arguments.

Gauntlet-Managed

Launched and managed by Gauntlet for hardware/IoT assessments.

Integration

Depends On

Used By

Third-Party Dependencies & Credits

Tool / LibraryDeveloperTypeLink
nmap Gordon Lyon (Fyodor) system https://github.com/nmap/nmap
sslscan rbsec system https://github.com/rbsec/sslscan
testssl.sh Dirk Wetter system https://github.com/drwetter/testssl.sh
ssh-audit Joe Testa (jtesta) system https://github.com/jtesta/ssh-audit
Nuclei ProjectDiscovery system https://github.com/projectdiscovery/nuclei
gowitness SensePost / Orange Cyberdefense system https://github.com/sensepost/gowitness
Responder Laurent Gaffie (lgandx) system https://github.com/lgandx/Responder
smbmap ShawnDEvans system https://github.com/ShawnDEvans/smbmap
tcpdump The Tcpdump Group system https://github.com/the-tcpdump-group/tcpdump
tshark / Wireshark Gerald Combs / Wireshark Foundation system https://github.com/wireshark/wireshark
Nessus (integration) Tenable system https://www.tenable.com/products/nessus
bettercap Simone Margaritelli (evilsocket) system https://github.com/bettercap/bettercap
dnsmasq Simon Kelley system https://thekelleys.org.uk/dnsmasq/doc.html
can-utils Oliver Hartkopp / Linux-CAN project system https://github.com/linux-can/can-utils
Proxmark3 Iceman / RRG (RFID Research Group) system https://github.com/RfidResearchGroup/proxmark3
crackle Mike Ryan system https://github.com/mikeryan/crackle
Sniffle NCC Group / Sultan Qasim Khan system https://github.com/nccgroup/Sniffle
Ubertooth One tools Great Scott Gadgets / Michael Ossmann system https://github.com/greatscottgadgets/ubertooth
aircrack-ng suite Thomas d'Otreppe (Mister_X) system https://github.com/aircrack-ng/aircrack-ng
hcxdumptool ZerBea system https://github.com/ZerBea/hcxdumptool
reaver t6x / Tactical Network Solutions system https://github.com/t6x/reaver-wps-fork-t6x
rtl_433 Benjamin Larsson (merbanan) system https://github.com/merbanan/rtl_433
HackRF One tools Great Scott Gadgets / Michael Ossmann system https://github.com/greatscottgadgets/hackrf
OpenSC OpenSC project system https://github.com/OpenSC/OpenSC
Hydra THC / van Hauser system https://github.com/vanhauser-thc/thc-hydra
shcheck meliot / santoru system https://github.com/santoru/shcheck

Metadata

NameGearbox
CategoryExploitation
Version1.18.12
Install Path/opt/pr0t31n/Gearbox
Main Filegearbox.py
GitHubhttps://github.com/pr0t31n/Gearbox.git
RequiresGauntlet, Shared