Simple script for hacking your TP-Link M7350 LTE modem/router
$ ruby tp.rb -t [ip] -p [password]
Options:
-s, --ssh Install dropbear SSH server
-a, --adb Enable ADBD service
-k, --keep Keep the telnetd payload
-p, --pass=<s> Web interface password
-t, --target=<s> Target IP
-r, --rce=<i> RCE version, 1, 5 or autodetect if left empty
-d, --dropbear-bin=<s> Dropbear binary location (default:
https://raw.githubusercontent.com/ecdsa521/tpown/main/dropbearmulti)
-o, --dropbear-init=<s> Dropbear init script location (default:
https://raw.githubusercontent.com/ecdsa521/tpown/main/dropbearserver.sh)
-h, --help Show this message
First user is logged in, token is saved, then used to launch RCE in one of two versions. RCE spawns telnet server and payload is deleted
Telnet server is used to enable adb and/or ssh server