Fixed GetFlag script for basically gambling
The script now connects to the live server on port 6646 Netcat required a timeout on some systems or the connection won't terminate automatically, causing the GetFlag script to be stuck at attempt one forever.
This commit is contained in:
@@ -5,7 +5,7 @@ while :;
|
|||||||
do
|
do
|
||||||
echo "Attempt ${ATTEMPT}..."
|
echo "Attempt ${ATTEMPT}..."
|
||||||
ATTEMPT=$[ATTEMPT + 1]
|
ATTEMPT=$[ATTEMPT + 1]
|
||||||
RESULT=$(nc localhost 6667 | base64 -d | strings | grep "MNZ{")
|
RESULT=$(nc ctf.minzkraut.com 6646 -w2 | base64 -d | strings | grep "MNZ{")
|
||||||
if [[ $RESULT ]]; then
|
if [[ $RESULT ]]; then
|
||||||
echo "Found the flag"
|
echo "Found the flag"
|
||||||
echo $RESULT
|
echo $RESULT
|
||||||
|
|||||||
Reference in New Issue
Block a user