mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Just in case update (for unhandled exceptions happening too soon)
This commit is contained in:
parent
3b06665c9f
commit
5e9c73f9c1
|
@ -2903,6 +2903,12 @@ def maskSensitiveData(msg):
|
|||
value = extractRegexResult(regex, retVal)
|
||||
retVal = retVal.replace(value, '*' * len(value))
|
||||
|
||||
if not conf.get("hostname"):
|
||||
match = re.search(r"(?i)sqlmap.+(-u|--url)\s+([^ ]+)", retVal)
|
||||
if match:
|
||||
retVal = retVal.replace(match.group(2), '*' * len(match.group(2)))
|
||||
|
||||
|
||||
if getpass.getuser():
|
||||
retVal = re.sub(r"(?i)\b%s\b" % re.escape(getpass.getuser()), "*" * len(getpass.getuser()), retVal)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user