|
|
|
|
|
|
|
|
read -p "Enter the prefix for the URL: " prefix |
|
|
read -p "Enter the prefix for the URL: " prefix |
|
|
|
|
|
|
|
|
# Construct URLs with the user-provided prefix |
|
|
# Construct URLs with the user-provided prefix |
|
|
url="https://${prefix}.gslab-juiceshop.com/rest/admin/application-configuration" |
|
|
|
|
|
|
|
|
url="https://${prefix}.gslab-juiceshop.com/api/Quantitys/" |
|
|
|
|
|
|
|
|
# Generating GET requests for /rest/admin/application-configuration |
|
|
|
|
|
echo "Generating GET requests for /rest/admin/application-configuration" |
|
|
|
|
|
siege -c150 -t30s $url |
|
|
|
|
|
|
|
|
# Generating GET requests for api/Quantitys/ |
|
|
|
|
|
echo "Generating GET requests for api/Quantitys/" |
|
|
|
|
|
siege -c25 -t30s $url |