From 5e9c73f9c14a0660eacf2f4dbf46b53b040cb0ed Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 8 Nov 2014 21:44:46 +0100 Subject: [PATCH] Just in case update (for unhandled exceptions happening too soon) --- lib/core/common.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)