#!/bin/bash | |||||
# Prompt for URL prefix | |||||
read -p "Enter the prefix: " prefix | |||||
# Define the path | |||||
PATHS='search?q=apple' | |||||
# Use siege to perform the request | |||||
siege "https://${prefix}.gslab-juiceshop.com/$PATHS" \ | |||||
--header="waf_exception: <iframe src=\"javascript:alert('Perf Tool Test')\">" \ | |||||
--content-type="application/x-www-form-urlencoded" \ | |||||
--concurrent=1 \ | |||||
--time=10S |