From aa95a05477763f357d7ac614038ec84a8f6df1a7 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 3 Dec 2014 13:14:06 +0100 Subject: [PATCH] Minor update --- lib/core/common.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index eac6f812c..97bd7632e 100755 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2832,10 +2832,11 @@ def showHttpErrorCodes(): if code in httplib.responses else '?', count) \ for code, count in kb.httpErrorCodes.items()) logger.warn(warnMsg) - if any(str(_).startswith('4') or str(_).startswith('5') for _ in kb.httpErrorCodes.keys()): - msg = "too many 4xx and/or 5xx HTTP error codes " - msg += "usually means that some kind of protection is involved (e.g. WAF)" - logger.warn(msg) + if not kb.injections: + if any(str(_).startswith('4') or str(_).startswith('5') for _ in kb.httpErrorCodes.keys()): + msg = "too many 4xx and/or 5xx HTTP error codes " + msg += "could mean that some kind of protection is involved (e.g. WAF)" + logger.warn(msg) def openFile(filename, mode='r', encoding=UNICODE_ENCODING, errors="replace"): """