Importing Basically Gambling challenge

This commit is contained in:
Jan Groß
2018-07-08 19:06:10 -04:00
parent 19cece5711
commit aba24b087a
3 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
echo "Attempting to get flag..."
ATTEMPT=1
while :;
do
echo "Attempt ${ATTEMPT}..."
ATTEMPT=$[ATTEMPT + 1]
RESULT=$(nc localhost 6667 | base64 -d | strings | grep "MNZ{")
if [[ $RESULT ]]; then
echo "Found the flag"
echo $RESULT
break
fi
done