2017-05-26 20:26:25 +00:00
|
|
|
#!/bin/sh
|
2017-06-09 10:28:57 +00:00
|
|
|
IP=172.16.42.1
|
2017-05-26 20:26:25 +00:00
|
|
|
TELNET_PORT=24
|
|
|
|
|
|
|
|
telnetd -b "${IP}:${TELNET_PORT}" -l /bin/sh
|
|
|
|
|
|
|
|
echo "---"
|
|
|
|
echo "WARNING: usb shell is active on ${IP}:${TELNET_PORT}."
|
|
|
|
echo "This is a security hole! Only use it for debugging, and"
|
|
|
|
echo "uninstall the usb-shell hook afterwards!"
|
|
|
|
echo "---"
|
|
|
|
|