mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Adding switch --skip-waf
This commit is contained in:
parent
e81e474646
commit
81caf14b6d
5 changed files with 17 additions and 4 deletions
|
|
@ -1142,12 +1142,12 @@ def checkWaf():
|
|||
Reference: http://seclists.org/nmap-dev/2011/q2/att-1005/http-waf-detect.nse
|
||||
"""
|
||||
|
||||
if any((conf.string, conf.notString, conf.regexp, conf.dummy, conf.offline)):
|
||||
if any((conf.string, conf.notString, conf.regexp, conf.dummy, conf.offline, conf.skipWaf)):
|
||||
return None
|
||||
|
||||
dbmMsg = "heuristically checking if the target is protected by "
|
||||
dbmMsg += "some kind of WAF/IPS/IDS"
|
||||
logger.debug(dbmMsg)
|
||||
infoMsg = "checking if the target is protected by "
|
||||
infoMsg += "some kind of WAF/IPS/IDS"
|
||||
logger.info(infoMsg)
|
||||
|
||||
retVal = False
|
||||
payload = "%d %s" % (randomInt(), IDS_WAF_CHECK_PAYLOAD)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue