mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
Couple of fixes for --identify-waf
This commit is contained in:
parent
7a2ac23f0b
commit
210b65c02d
5 changed files with 15 additions and 14 deletions
|
|
@ -17,9 +17,9 @@ def detect(get_page):
|
|||
|
||||
for vector in WAF_ATTACK_VECTORS:
|
||||
_, headers, code = get_page(get=vector)
|
||||
retVal = code == 999
|
||||
retval = code == 999
|
||||
retval |= re.search(r"WebKnight", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
|
||||
if retVal:
|
||||
if retval:
|
||||
break
|
||||
|
||||
return retval
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue