How acecilia/openwrtinvasion works
OpenWRTInvasion is a command-line exploit for obtaining root access on supported Xiaomi routers. The main workflow collects router credentials, obtains or prompts for a stok, builds and uploads a crafted archive, then triggers the router’s speed-test endpoint to execute the payload. The payload can fetch helper files from a local TCP server or a remote repository; the README describes connecting to the resulting root-access services and installing OpenWrt. Source excerpts show the controller and local server, but not the payload script’s internals.
Main entry points: remote_command_execution_vulnerability.py Exploit controller · tcp_file_server.py Local file server · script.sh Exploit script · set_english.py Language configuration
Components 11
Exploit workflow
- Exploit controller
remote_command_execution_vulnerability.py - Xiaomi router
- Payload archive
remote_command_execution_vulnerability.py - Exploit script
script.sh - Local file server
tcp_file_server.py - Helper files
script_tools - Remote file source
Router access
- Root access services
Firmware installation
- OpenWrt firmware images
firmwares/OpenWrt/06-06-2020
Router utilities
- Language configuration
set_english.py
Other components
- Operator
Connections 14
- Operator → Exploit controller: runs
README.md - Exploit controller → Xiaomi router: authenticates
remote_command_execution_vulnerability.py - Exploit controller → Payload archive: creates
remote_command_execution_vulnerability.py - Exploit controller → Xiaomi router: uploads archive
remote_command_execution_vulnerability.py - Exploit controller → Xiaomi router: triggers execution
remote_command_execution_vulnerability.py - Exploit controller → Local file server: starts optionally
remote_command_execution_vulnerability.py - Local file server → Helper files: serves files from
- Exploit script → Local file server: fetches files
- Exploit script → Remote file source: fetches files
- Xiaomi router → Root access services: provides access
README.md - Operator → Root access services: connects
README.md - Operator → OpenWrt firmware images: downloads and flashes
README.md - Operator → Language configuration: runs separately
set_english.py - Language configuration → Xiaomi router: uploads configuration
set_english.py