You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

urlprotection.sh 393B

12345678910111213
  1. #!/bin/bash
  2. # Prompt user for the prefix value
  3. read -p "Enter the prefix for the URL: " prefix
  4. # Array of IP addresses
  5. IP_ADDRESSES=("92.123.74.30" "2.20.178.36" "184.150.165.4")
  6. # Loop through each IP address and run ApacheBench
  7. for IP in "${IP_ADDRESSES[@]}"; do
  8. echo "Testing $IP with prefix ${prefix}..."
  9. ab -n 200 -c 35 -H "Host: ${prefix}.gslab-juiceshop.com" http://$IP/
  10. done