mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-24 08:29:07 +00:00
Minor patch for masking sensitive information (when formation -u=... is used)
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user