mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor patch for masking sensitive information (when formation -u=... is used)
This commit is contained in:
parent
59f0da369d
commit
2af2aef43e
|
@ -3003,9 +3003,9 @@ def maskSensitiveData(msg):
|
|||
retVal = retVal.replace(value, '*' * len(value))
|
||||
|
||||
if not conf.get("hostname"):
|
||||
match = re.search(r"(?i)sqlmap.+(-u|--url)\s+([^ ]+)", retVal)
|
||||
match = re.search(r"(?i)sqlmap.+(-u|--url)(\s+|=)([^ ]+)", retVal)
|
||||
if match:
|
||||
retVal = retVal.replace(match.group(2), '*' * len(match.group(2)))
|
||||
retVal = retVal.replace(match.group(3), '*' * len(match.group(3)))
|
||||
|
||||
|
||||
if getpass.getuser():
|
||||
|
|
Loading…
Reference in New Issue
Block a user