From a3507d65fd352c6f2988b6a4ed0683dd0005e59a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 4 Dec 2014 09:34:37 +0100 Subject: [PATCH] Minor update --- lib/core/common.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 08c95cd24..f2beec5d5 100755 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2832,11 +2832,10 @@ def showHttpErrorCodes(): if code in httplib.responses else '?', count) \ for code, count in kb.httpErrorCodes.items()) logger.warn(warnMsg) - if not kb.injections: - if any((str(_).startswith('4') or str(_).startswith('5')) and _ != httplib.INTERNAL_SERVER_ERROR and _ != kb.originalCode 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) + if any((str(_).startswith('4') or str(_).startswith('5')) and _ != httplib.INTERNAL_SERVER_ERROR and _ != kb.originalCode 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"): """