1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-08 04:51:06 -07:00
moth/pwnables/skel/var/service/telnetd/run
2009-10-06 12:06:30 -06:00

7 lines
148 B
Bash
Executable file

#! /bin/sh
state=$(cat /sys/class/net/eth1/operstate)
if [ "$state" != "up" ]; then
exit 0
fi
exec tcpsvd 192.168.0.1 23 telnetd -i -l /bin/sh