Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a3507d6

Browse files
committed
Minor update
1 parent d3060f2 commit a3507d6

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

lib/core/common.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,11 +2832,10 @@ def showHttpErrorCodes():
28322832
if code in httplib.responses else '?', count) \
28332833
for code, count in kb.httpErrorCodes.items())
28342834
logger.warn(warnMsg)
2835-
if not kb.injections:
2836-
if any((str(_).startswith('4') or str(_).startswith('5')) and _ != httplib.INTERNAL_SERVER_ERROR and _ != kb.originalCode for _ in kb.httpErrorCodes.keys()):
2837-
msg = "too many 4xx and/or 5xx HTTP error codes "
2838-
msg += "could mean that some kind of protection is involved (e.g. WAF)"
2839-
logger.warn(msg)
2835+
if any((str(_).startswith('4') or str(_).startswith('5')) and _ != httplib.INTERNAL_SERVER_ERROR and _ != kb.originalCode for _ in kb.httpErrorCodes.keys()):
2836+
msg = "too many 4xx and/or 5xx HTTP error codes "
2837+
msg += "could mean that some kind of protection is involved (e.g. WAF)"
2838+
logger.warn(msg)
28402839

28412840
def openFile(filename, mode='r', encoding=UNICODE_ENCODING, errors="replace"):
28422841
"""

0 commit comments

Comments
 (0)