diff --git a/lib/core/common.py b/lib/core/common.py index 12f42a676..3658940a1 100755 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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)