How threat9/routersploit works
RouterSploit is an interactive embedded-device penetration-testing framework. An operator selects and configures a module in the interpreter, then runs vulnerability checks, credential tests, scanners, or exploits against a target; results are reported through the framework’s output layer. The module catalog also includes payload generators, encoders, and generic attacks. The graph shows the documented capabilities and sampled runtime relationships; many individual modules and protocol implementations were not inspected, so their specific call paths are omitted.
Main entry points: interpreter.py Interactive interpreter · exploit.py Exploit framework · exploits Device exploits · option.py Options and validation
Components 23
Operator interface
- Interactive interpreter
routersploit/interpreter.py
Security modules
- Device exploits
routersploit/modules/exploits - Credential checks
routersploit/modules/creds - Vulnerability scanners
routersploit/modules/scanners - Payload modules
routersploit/modules/payloads - Generic attacks
routersploit/modules/generic - Encoders
routersploit/modules/encoders
Framework runtime
- Exploit framework
routersploit/core/exploit/exploit.py - Options and validation
routersploit/core/exploit/option.py - Payload generation
routersploit/core/exploit/payloads.py - Interactive shell helper
routersploit/core/exploit/shell.py - Module discovery utilities
routersploit/core/exploit/utils.py - Output and reporting
routersploit/core/exploit/printer.py
Protocol clients
- HTTP client
routersploit/core/http/http_client.py - SSH client
routersploit/core/ssh/ssh_client.py - FTP client
routersploit/core/ftp/ftp_client.py - Telnet client
routersploit/core/telnet/telnet_client.py - SNMP client
routersploit/core/snmp/snmp_client.py - TCP client
routersploit/core/tcp/tcp_client.py - UDP client
routersploit/core/udp/udp_client.py - Bluetooth clients
routersploit/core/bluetooth/btle_client.py
Other components
- Operator
- Embedded device
Connections 25
- Operator → Interactive interpreter: commands
- Interactive interpreter → Module discovery utilities: discovers modules
routersploit/interpreter.py - Interactive interpreter → Payload generation: accesses payloads
routersploit/interpreter.py - Interactive interpreter → Exploit framework: loads exploits
routersploit/interpreter.py - Device exploits → HTTP client: uses HTTP
routersploit/modules/exploits/routers/cisco/ucs_manager_rce.py - Device exploits → SSH client: uses SSH
routersploit/modules/exploits/routers/mikrotik/routeros_jailbreak.py - Generic attacks → UDP client: uses UDP
routersploit/modules/generic/upnp/ssdp_msearch.py - Vulnerability scanners → Exploit framework: checks exploits
routersploit/modules/scanners/autopwn.py - Vulnerability scanners → Device exploits: selects modules
routersploit/modules/scanners/autopwn.py - Credential checks → Options and validation: uses options
- Payload modules → Payload generation: generates payloads
- Encoders → Payload generation: encodes payloads
- Exploit framework → Options and validation: aggregates options
routersploit/core/exploit/exploit.py - Options and validation → Output and reporting: reports errors
routersploit/core/exploit/option.py - Exploit framework → Output and reporting: reports status
routersploit/core/exploit/exploit.py - Interactive interpreter → Output and reporting: prints output
routersploit/interpreter.py - Interactive interpreter → Interactive shell helper: runs shell helper
routersploit/interpreter.py - HTTP client → Embedded device: sends requests
routersploit/core/http/http_client.py - SSH client → Embedded device: opens SSH
routersploit/core/ssh/ssh_client.py - FTP client → Embedded device: connects FTP
- Telnet client → Embedded device: connects Telnet
routersploit/core/telnet/telnet_client.py - SNMP client → Embedded device: queries SNMP
- TCP client → Embedded device: sends TCP
routersploit/core/tcp/tcp_client.py - UDP client → Embedded device: sends UDP
routersploit/core/udp/udp_client.py - Bluetooth clients → Embedded device: scans Bluetooth