Skip to content

Commit 5e9c73f

Browse files
committed
Just in case update (for unhandled exceptions happening too soon)
1 parent 3b06665 commit 5e9c73f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/core/common.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2903,6 +2903,12 @@ def maskSensitiveData(msg):
29032903
value = extractRegexResult(regex, retVal)
29042904
retVal = retVal.replace(value, '*' * len(value))
29052905

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+
29062912
if getpass.getuser():
29072913
retVal = re.sub(r"(?i)\b%s\b" % re.escape(getpass.getuser()), "*" * len(getpass.getuser()), retVal)
29082914

0 commit comments

Comments
 (0)