Skip to content

Instantly share code, notes, and snippets.

@sar
Created December 8, 2020 06:28
Show Gist options
  • Save sar/61143e9f8728be0a57f44c4d82a85dec to your computer and use it in GitHub Desktop.
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
#!/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