Minor update

This commit is contained in:
Miroslav Stampar 2014-12-04 09:34:37 +01:00
parent d3060f20d7
commit a3507d65fd

View File

@ -2832,7 +2832,6 @@ 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)"