Minor update

This commit is contained in:
Miroslav Stampar 2014-12-03 13:14:06 +01:00
parent 17db587e2c
commit aa95a05477

View File

@ -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"):
"""