Skip to content

Commit

Permalink
update some details
Browse files Browse the repository at this point in the history
  • Loading branch information
YagamiiLight committed Dec 24, 2019
1 parent 8fbbb25 commit 731121b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions data/payloads.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
waf_checker = [ "'",
# "1 AND 1",
# "1/**/AND/**/1",
# "1 AND 1=1",
"1 AND 1",
"1/**/AND/**/1",
"1 AND 1=1",
"1 AND 1 LIKE 1",
"<img src=x onerror=alert('XSS')>",
# "<img onfoo=f()>",
"<img onfoo=f()>",
"<script>alert('intrusion')</script>",
" ' AND '1'='1"]

Expand Down
6 changes: 4 additions & 2 deletions strike/detect_waf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ def check_waf(target, logger_type, proxy = None):
try:
target, payload = chambering(target, strike=True, payload=intruder)
response = requester(target, payload, GET=True, timeout=5, proxy=proxy)
page, code, headers = response.text, response.status_code, response.headers

if int(code) >= 400:
if not response is None:
page, code, headers = response.text, response.status_code, response.headers

if code >= 400:
match = 0

for waf_name, waf_signature in waf_data.items():
Expand Down

0 comments on commit 731121b

Please sign in to comment.