PORT CONSUMED TIME LOG
This commit is contained in:
parent
255001d7f8
commit
a1838a1cc0
13
12345.sh
13
12345.sh
|
@ -137,22 +137,13 @@ while true; do
|
||||||
mySalt | \
|
mySalt | \
|
||||||
sed "s~http://127.0.0.1:12345~http://${myIP}:${PORT}~g" | \
|
sed "s~http://127.0.0.1:12345~http://${myIP}:${PORT}~g" | \
|
||||||
sed "s~http://${myIP}:${PORT}~${myASTROPORT}/${PORT}~g" | \
|
sed "s~http://${myIP}:${PORT}~${myASTROPORT}/${PORT}~g" | \
|
||||||
nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &
|
( nc -l -p ${PORT} -q 1 > /dev/null 2>&1 && echo " (‿/‿) $PORT CONSUMED in "`expr $(date +%s) - $start`" seconds." ) &
|
||||||
else
|
else
|
||||||
mySalt | \
|
mySalt | \
|
||||||
sed "s~http://127.0.0.1:12345~http://${myIP}:${PORT}~g" | \
|
sed "s~http://127.0.0.1:12345~http://${myIP}:${PORT}~g" | \
|
||||||
nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &
|
( nc -l -p ${PORT} -q 1 > /dev/null 2>&1 && echo " (‿/‿) $PORT CONSUMED in "`expr $(date +%s) - $start`" seconds." ) &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#~ echo "$HTTPCORS
|
|
||||||
#~ <html>
|
|
||||||
#~ <head>
|
|
||||||
#~ <title>[Astroport] :powered: Station</title>
|
|
||||||
#~ <meta http-equiv=\"refresh\" content=\"3; url='https://astroport.com'\" />
|
|
||||||
#~ </head>
|
|
||||||
#~ DING : ${MOATS} : $(date)" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &
|
|
||||||
end=`date +%s`
|
|
||||||
echo " (‿/‿) $myHOST:$PORT / Execution time was "`expr $end - $start` seconds.
|
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue