Skip to content

Commit c578ab4

Browse files
committed
upload found-action sample
1 parent d9f1a25 commit c578ab4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

samples/sample_found_action.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# @@query@@ : https://www.hahwul.com?q="><script~~blahblah
2+
# @@target@@ : https://www.hahwul.com
3+
# @@type@@ : WEAK / VULN
4+
# slack.sh @@query@@ @@type@@
5+
6+
query=$1
7+
type=$2
8+
if [ $type = "VULN" ]
9+
then
10+
curl -X POST --data-urlencode "payload={\"channel\": \"#yourchannel\", \"username\": \"DalFox\", \"text\": \"[Verify]\n$query\", \"icon_emoji\": \"fox\"}" https://hooks.slack.com/services/your/secret_url
11+
else
12+
curl -X POST --data-urlencode "payload={\"channel\": \"#yourchannel\", \"username\": \"DalFox\", \"text\": \"[Reflected]\n$query\", \"icon_emoji\": \":fox:\"}" https://hooks.slack.com/services/your/secret_url
13+
fi

0 commit comments

Comments
 (0)