Created
December 8, 2020 06:28
-
-
Save sar/61143e9f8728be0a57f44c4d82a85dec to your computer and use it in GitHub Desktop.
Iterates cURL HTTP GET requests to uri nth times; replicate thread for DDoS testing
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
#!/bin/bash | |
read -p "Enter direct URL for cURL page loop: " url | |
read -p "Max loop iterations: " iter | |
counter=1 | |
while [ $counter -le $iter ] | |
do | |
echo $counter | |
# curl domain | |
curl -s $url > /dev/null | |
((counter++)) | |
done | |
echo "Loop completed, open $URL to view result" | |
set +x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment