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_bvm.sh 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. # Prompt the user for the Prefix value
  3. read -p "Enter the Prefix for the URL: " Prefix
  4. echo -e "\n---- Generating Traffic for Custom Bot Categories ----\n"
  5. ab -v 0 -q -S -d -c 2 -n 30 -H "cookie:partNumber=wrongValue" -H "User-Agent: PartnerJailBot" "https://$Prefix.gslab-juiceshop.com/"
  6. sleep 1
  7. ab -v 0 -q -S -d -c 2 -n 30 -H "cookie:partNumber=DWJhAXa22XkL" -H "User-Agent: PartnerJailBot" "https://$Prefix.gslab-juiceshop.com/"
  8. sleep 1
  9. echo -e "\n---- Generating Traffic for Transparent Bot Detections ----\n"
  10. ab -v 0 -q -S -d -c 2 -n 30 -H "User-Agent: BaiduSpider" "https://$Prefix.gslab-juiceshop.com/"
  11. sleep 1
  12. for i in `seq 1 30`; do
  13. echo -ne "\r$i/30"
  14. sleep 1
  15. curl -s -S "https://$Prefix.gslab-juiceshop.com/" \
  16. -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' \
  17. -H 'task: Browser Impersonator' \
  18. --compressed \
  19. -o /dev/null;
  20. curl -s -S "https://$Prefix.gslab-juiceshop.com/robots.txt" \
  21. -A 'Googlebot' \
  22. -H 'task: transparent bots v2' \
  23. --compressed \
  24. -o /dev/null;
  25. done
  26. echo "Finished"