浏览代码

Added script for WAF Protection lab

main
kusum 7 个月前
父节点
当前提交
02c14117fc
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14
    0
      GSAutomation/waap-labs/waap_wafexceptions.sh

+ 14
- 0
GSAutomation/waap-labs/waap_wafexceptions.sh 查看文件

@@ -0,0 +1,14 @@
#!/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

正在加载...
取消
保存