mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
Minor style update
This commit is contained in:
parent
2655b078d0
commit
b7cfaa6ca5
|
@ -1096,9 +1096,9 @@ def checkWaf():
|
||||||
Reference: http://seclists.org/nmap-dev/2011/q2/att-1005/http-waf-detect.nse
|
Reference: http://seclists.org/nmap-dev/2011/q2/att-1005/http-waf-detect.nse
|
||||||
"""
|
"""
|
||||||
|
|
||||||
infoMsg = "heuristically checking if the target is protected by "
|
dbmMsg = "heuristically checking if the target is protected by "
|
||||||
infoMsg += "some kind of WAF/IPS/IDS"
|
dbmMsg += "some kind of WAF/IPS/IDS"
|
||||||
logger.info(infoMsg)
|
logger.debug(dbmMsg)
|
||||||
|
|
||||||
retVal = False
|
retVal = False
|
||||||
backup = dict(conf.parameters)
|
backup = dict(conf.parameters)
|
||||||
|
@ -1119,8 +1119,8 @@ def checkWaf():
|
||||||
conf.parameters = dict(backup)
|
conf.parameters = dict(backup)
|
||||||
|
|
||||||
if retVal:
|
if retVal:
|
||||||
warnMsg = "it appears that the target "
|
warnMsg = "heuristics detected that the target "
|
||||||
warnMsg += "is protected"
|
warnMsg += "is protected by some kind of WAF/IPS/IDS"
|
||||||
logger.critical(warnMsg)
|
logger.critical(warnMsg)
|
||||||
|
|
||||||
if not conf.identifyWaf:
|
if not conf.identifyWaf:
|
||||||
|
@ -1130,9 +1130,6 @@ def checkWaf():
|
||||||
|
|
||||||
if output and output[0] in ("Y", "y"):
|
if output and output[0] in ("Y", "y"):
|
||||||
conf.identifyWaf = True
|
conf.identifyWaf = True
|
||||||
else:
|
|
||||||
infoMsg = "it appears that the target is not protected"
|
|
||||||
logger.info(infoMsg)
|
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user