Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2af2aef

Browse files
committed
Minor patch for masking sensitive information (when formation -u=... is used)
1 parent 59f0da3 commit 2af2aef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3003,9 +3003,9 @@ def maskSensitiveData(msg):
30033003
retVal = retVal.replace(value, '*' * len(value))
30043004

30053005
if not conf.get("hostname"):
3006-
match = re.search(r"(?i)sqlmap.+(-u|--url)\s+([^ ]+)", retVal)
3006+
match = re.search(r"(?i)sqlmap.+(-u|--url)(\s+|=)([^ ]+)", retVal)
30073007
if match:
3008-
retVal = retVal.replace(match.group(2), '*' * len(match.group(2)))
3008+
retVal = retVal.replace(match.group(3), '*' * len(match.group(3)))
30093009

30103010

30113011
if getpass.getuser():

0 commit comments

Comments
 (0)