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.

waap_partner_exam.sh 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash
  2. # Prompt the user for the Prefix value
  3. read -p "Enter the Prefix for the URL: " Prefix
  4. # Construct URL with the user-provided prefix
  5. url="https://${Prefix}waapexam.appsec-akaed.com/shop/"
  6. # Generate GET requests for /shop/
  7. echo -e "\n---- Generating Traffic ----\n"
  8. siege -c 150 -t 10s -b --no-parser $url
  9. echo -e "\n---- Generating Traffic ----\n"
  10. ab -v 0 -q -S -d -c 2 -n 30 -H "cookie:waapexam=wrongValue" -H "User-Agent: ExamBot" "https://${Prefix}waapexam.appsec-akaed.com/"
  11. sleep 1
  12. ab -v 0 -q -S -d -c 2 -n 30 -H "cookie:waapexam=ABC1234" -H "User-Agent: ExamBot" "https://${Prefix}waapexam.appsec-akaed.com/"
  13. sleep 1
  14. echo -e "\n---- Generating Traffic ----\n"
  15. ab -v 0 -q -S -d -c 2 -n 30 -H "User-Agent: Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" "https://${Prefix}waapexam.appsec-akaed.com/"
  16. sleep 1
  17. echo -e "\n---- Generating Traffic ----\n"
  18. ab -v 0 -q -S -d -c 2 -n 30 -H "User-Agent: Ruby/3.2.2" "https://${Prefix}waapexam.appsec-akaed.com/"
  19. sleep 1
  20. for i in $(seq 1 30); do
  21. echo -ne "\r$i/30"
  22. sleep 1
  23. curl -s -S "https://${Prefix}waapexam.appsec-akaed.com/" \
  24. -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36' \
  25. -H 'task: Browser Impersonator' \
  26. --compressed \
  27. -o /dev/null
  28. curl -s -S "https://${Prefix}waapexam.appsec-akaed.com/robots.txt" \
  29. -A 'Googlebot' \
  30. -H 'task: transparent bots v2' \
  31. --compressed \
  32. -o /dev/null
  33. done
  34. echo -e "\nFinished"