Just in case update (for unhandled exceptions happening too soon)

This commit is contained in:
Miroslav Stampar 2014-11-08 21:44:46 +01:00
parent 3b06665c9f
commit 5e9c73f9c1

View File

@ -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)