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_urlloadshedding.sh 491B

1234567891011121314
  1. #!/bin/bash
  2. # Prompt the user for the value of the prefix
  3. read -p "Enter the prefix for the URL: " prefix
  4. # Construct URLs with the user-provided prefix
  5. url="https://${prefix}.gslab-juiceshop.com/api/Quantitys/"
  6. # Set the User-Agent string to the latest version of Ruby
  7. user_agent="Ruby/3.2.2"
  8. # Generating GET requests for api/Quantitys/ with Ruby User-Agent
  9. echo "Generating GET requests for api/Quantitys/ with Ruby User-Agent"
  10. siege -c25 -t30s --header="User-Agent: $user_agent" $url