mirror of https://github.com/dirtbags/moth.git
8 lines
148 B
Plaintext
8 lines
148 B
Plaintext
|
#! /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
|