From b7cfaa6ca52285cf24a530f3f8c0712a2d8b0088 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 22 Jan 2015 08:55:37 +0100 Subject: [PATCH] Minor style update --- lib/controller/checks.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 8681cc229..5e93c6256 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -1096,9 +1096,9 @@ def checkWaf(): Reference: http://seclists.org/nmap-dev/2011/q2/att-1005/http-waf-detect.nse """ - infoMsg = "heuristically checking if the target is protected by " - infoMsg += "some kind of WAF/IPS/IDS" - logger.info(infoMsg) + dbmMsg = "heuristically checking if the target is protected by " + dbmMsg += "some kind of WAF/IPS/IDS" + logger.debug(dbmMsg) retVal = False backup = dict(conf.parameters) @@ -1119,8 +1119,8 @@ def checkWaf(): conf.parameters = dict(backup) if retVal: - warnMsg = "it appears that the target " - warnMsg += "is protected" + warnMsg = "heuristics detected that the target " + warnMsg += "is protected by some kind of WAF/IPS/IDS" logger.critical(warnMsg) if not conf.identifyWaf: @@ -1130,9 +1130,6 @@ def checkWaf(): if output and output[0] in ("Y", "y"): conf.identifyWaf = True - else: - infoMsg = "it appears that the target is not protected" - logger.info(infoMsg) return retVal