mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Doing some fine tuning for WAF detection
This commit is contained in:
parent
f00e8f5b71
commit
2e6820f981
5 changed files with 9 additions and 6 deletions
|
|
@ -1377,6 +1377,7 @@ def checkWaf():
|
|||
kb.choices.redirect = REDIRECTION.YES
|
||||
kb.resendPostOnRedirect = False
|
||||
conf.timeout = IPS_WAF_CHECK_TIMEOUT
|
||||
kb.checkWafMode = True
|
||||
|
||||
try:
|
||||
retVal = (Request.queryPage(place=place, value=value, getRatioValue=True, noteResponseTime=False, silent=True, raise404=False, disableTampering=True)[1] or 0) < IPS_WAF_CHECK_RATIO
|
||||
|
|
@ -1384,6 +1385,7 @@ def checkWaf():
|
|||
retVal = True
|
||||
finally:
|
||||
kb.matchRatio = None
|
||||
kb.checkWafMode = False
|
||||
|
||||
conf.timeout = popValue()
|
||||
kb.resendPostOnRedirect = popValue()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue