Skip to content

Instantly share code, notes, and snippets.

@sar
Created March 14, 2021 00:48
Show Gist options
  • Save sar/9e4b426373322f172c83fba7da7b41c2 to your computer and use it in GitHub Desktop.
Save sar/9e4b426373322f172c83fba7da7b41c2 to your computer and use it in GitHub Desktop.
cURL webpage n-loops for Chaos Testing, DDoS, and Analytics Spiking
#!/bin/bash
# ----------------------
# cURL webpage n-iters useful for Chaos Testing, DDoS, Analytics Spiking
# Author github@sar assumes no responsibility for your actions
# ----------------------
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