From 08caca387b83b9168f3046cddd930b519503e23f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 29 May 2015 16:01:41 +0200 Subject: [PATCH] Minor patch of automatic WAF heuristic check --- lib/controller/checks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 922a413a6..14d93936d 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -1117,6 +1117,9 @@ def checkWaf(): Reference: http://seclists.org/nmap-dev/2011/q2/att-1005/http-waf-detect.nse """ + if any((conf.string, conf.notString, conf.regexp)): + return None + dbmMsg = "heuristically checking if the target is protected by " dbmMsg += "some kind of WAF/IPS/IDS" logger.debug(dbmMsg)