mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Removing reflective warning for parsing heuristic test
This commit is contained in:
2
lib/core/common.py
Normal file → Executable file
2
lib/core/common.py
Normal file → Executable file
@@ -2880,7 +2880,7 @@ def removeReflectiveValues(content, payload, suppressWarning=False):
|
||||
regex = REFLECTED_REPLACEMENT_REGEX.join(parts[1:])
|
||||
retVal = re.sub(r"(?i)\b%s\b" % regex, REFLECTED_VALUE_MARKER, retVal)
|
||||
|
||||
if retVal != content:
|
||||
if retVal != content and not kb.heuristicMode:
|
||||
kb.reflectiveCounters[REFLECTIVE_COUNTER.HIT] += 1
|
||||
if not suppressWarning:
|
||||
warnMsg = "reflective value(s) found and filtering out"
|
||||
|
||||
Reference in New Issue
Block a user