1234567891011 |
- #!/bin/bash
-
- # Prompt the user for the value of the prefix
- read -p "Enter the prefix for the URL: " prefix
-
- # Construct URLs with the user-provided prefix
- url="https://${prefix}.gslab-juiceshop.com/api/Feedbacks/"
-
- # Generating POST requests for /api/Feedbacks/
- echo "Generating POST requests for /api/Feedbacks/"
- siege -c150 -t10s "$url POST {\"captchaId\": 81, \"captcha\": \"9\", \"comment\": \"i like it! (anonymous)\", \"rating\": 5}" --content-type "application/json"
|