Created
January 19, 2019 16:44
-
-
Save tofarley/ab48db95bd648fcf0c43a0d5eab62982 to your computer and use it in GitHub Desktop.
curlpipebash?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
curl_result=$(curl -Ns https://curlpipebash.teaser.insomnihack.ch/print-flag.sh 2> /dev/null) | |
# curl_result = curl `curl -Ns blah | bash` | |
#if [[ $curl_result != curl* ]] ; then echo "breaking!" ; break; fi | |
url=$(echo $curl_result |cut -f3 -d' ' | tr -d '|') | |
#curl_result=$(curl -N $url 2> /dev/null) | |
echo "base url: $url" | |
while read -r line | |
do | |
echo "$line" | |
done <<< $(curl -Ns ${url} --limit-rate 10) | |
#url_result=$(curl -Ns https://curlpipebash.teaser.insomnihack.ch/print-flag.sh 2> /dev/null) | |
#while read -r line; do echo $line; done <( curl -Ns ${url} ) | |
#curl_result=$(curl -Ns ${url} -o tmp.${counter}) | |
#echo "curl_result = $curl_result" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment