|
|
@@ -4,11 +4,12 @@ |
|
|
|
read -p "Enter the prefix: " prefix |
|
|
|
|
|
|
|
# Define the path |
|
|
|
PATHS='search?q=apple' |
|
|
|
PATH='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 |
|
|
|
/usr/bin/curl -s -S "https://$prefix.gslab-juiceshop.com/$PATH" \ |
|
|
|
-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' \ |
|
|
|
-H 'waf_exception: <iframe src="javascript:alert(`Perf Tool Test`)">' \ |
|
|
|
--compressed \ |
|
|
|
-D - \ |
|
|
|
-o /dev/null |
|
|
|
echo " Finished" |