File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
28402841def openFile (filename , mode = 'r' , encoding = UNICODE_ENCODING , errors = "replace" ):
28412842 """
You can’t perform that action at this time.
0 commit comments