Skip to content

Instantly share code, notes, and snippets.

@Melotover
Created October 10, 2020 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Melotover/bfa36475f0bce6a032edc1ca010eb418 to your computer and use it in GitHub Desktop.
Save Melotover/bfa36475f0bce6a032edc1ca010eb418 to your computer and use it in GitHub Desktop.
#!/bin/bash
request=`curl https://finger-warmup.chals.damctf.xyz/zatjh2pgii2wc2yoovpet`
result=`echo $request | cut -d '"' -f 2`
for i in `seq 0 1000000`
do
new_request=`curl https://finger-warmup.chals.damctf.xyz/$result`
if [[ $new_request == *"patient enough I will give you the flag"* ]]; then
result=`echo $new_request | cut -d '"' -f 2`
else
echo $new_request
break
fi
echo "[+] visiting "$result
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment