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

Skip to content

Commit aa95a05

Browse files
committed
Minor update
1 parent 17db587 commit aa95a05

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

lib/core/common.py

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

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

0 commit comments

Comments
 (0)