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.

ratecontrols.sh 752B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # Prompt user for the prefix value
  3. read -p "Enter the prefix for the URL: " prefix
  4. # Variables
  5. TESTS=200
  6. PATHS="/rest/user/whoami"
  7. CONCURRENT=10
  8. # Run ApacheBench with the specified prefix
  9. /usr/bin/ab -v 0 -q -S -d \
  10. -X "gslab-juiceshop.com.edgekey-staging.net:80" \
  11. -c$CONCURRENT -n$TESTS \
  12. -H "task:rateControlTest" \
  13. -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36" \
  14. -H "Accept-Encoding: gzip" \
  15. -H "Accept: */*" \
  16. -H "referer: http://${prefix}.gslab-juiceshop.com/" \
  17. -H 'accept-language: en-US,en;q=0.9,es;q=0.8' \
  18. -H 'cookie: language=en; welcomebanner_status=dismiss; io=H1-9Vtxayp4pdpaQAABZ' \
  19. "http://${prefix}.gslab-juiceshop.com/$PATHS"