mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-21 19:22:48 +00:00
Minor patch (fallback for masking of sensitive data)
This commit is contained in:
parent
f92e1ebc40
commit
4660b816d5
3 changed files with 4 additions and 5 deletions
|
|
@ -3444,8 +3444,7 @@ def maskSensitiveData(msg):
|
|||
retVal = retVal.replace(value, '*' * len(value))
|
||||
|
||||
# Just in case (for problematic parameters regarding user encoding)
|
||||
match = re.search(r"(?i)[ -]-(u|url|data|cookie)( |=)(.*?)( -?-[a-z]|\Z)", retVal)
|
||||
if match:
|
||||
for match in re.finditer(r"(?i)[ -]-(u|url|data|cookie)( |=)(.*?)( -?-[a-z]|\Z)", retVal):
|
||||
retVal = retVal.replace(match.group(3), '*' * len(match.group(3)))
|
||||
|
||||
if getpass.getuser():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue