mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +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))
|
retVal = retVal.replace(value, '*' * len(value))
|
||||||
|
|
||||||
if not conf.get("hostname"):
|
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:
|
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():
|
if getpass.getuser():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user