We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b06665 commit 5e9c73fCopy full SHA for 5e9c73f
1 file changed
lib/core/common.py
@@ -2903,6 +2903,12 @@ def maskSensitiveData(msg):
2903
value = extractRegexResult(regex, retVal)
2904
retVal = retVal.replace(value, '*' * len(value))
2905
2906
+ if not conf.get("hostname"):
2907
+ match = re.search(r"(?i)sqlmap.+(-u|--url)\s+([^ ]+)", retVal)
2908
+ if match:
2909
+ retVal = retVal.replace(match.group(2), '*' * len(match.group(2)))
2910
+
2911
2912
if getpass.getuser():
2913
retVal = re.sub(r"(?i)\b%s\b" % re.escape(getpass.getuser()), "*" * len(getpass.getuser()), retVal)
2914
0 commit comments