瀏覽代碼

Added script for partner WAF exception

main
kusum 6 月之前
父節點
當前提交
3b5784cf19
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15
    0
      PartnerAutomation/waap-labs/waap_partner_wafexceptions.sh

+ 15
- 0
PartnerAutomation/waap-labs/waap_partner_wafexceptions.sh 查看文件

@@ -0,0 +1,15 @@
#!/bin/bash

# Prompt for URL prefix
read -p "Enter the prefix for your hostaname: " prefix

# Define the path
PATH='search?q=apple'

/usr/bin/curl -s -S "https://$prefix.appsec-akaed.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"

Loading…
取消
儲存