mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
minor update for masking sensitive data in error report (added aCred too)
This commit is contained in:
parent
ad2e4002ea
commit
f27f05308a
|
@ -2331,7 +2331,7 @@ def maskSensitiveData(msg):
|
|||
|
||||
retVal = msg
|
||||
|
||||
for item in filter(lambda x: x, [conf.hostname, conf.googleDork]):
|
||||
for item in filter(lambda x: x, [conf.hostname, conf.googleDork, conf.aCred]):
|
||||
regex = SENSITIVE_DATA_REGEX % item
|
||||
while extractRegexResult(regex, retVal):
|
||||
value = extractRegexResult(regex, retVal)
|
||||
|
|
|
@ -243,7 +243,7 @@ DEFAULT_TOR_PROXY = "http://127.0.0.1:8118"
|
|||
URI_INJECTABLE_REGEX = r".*/([^\.*?]+)\Z"
|
||||
|
||||
# Regex used for masking sensitive data
|
||||
SENSITIVE_DATA_REGEX = "\s(?P<result>[^\s]*%s[^\s]*)\s"
|
||||
SENSITIVE_DATA_REGEX = "(\s|=)(?P<result>[^\s=]*%s[^\s]*)\s"
|
||||
|
||||
# Maximum number of threads (avoiding connection issues and/or DoS)
|
||||
MAX_NUMBER_OF_THREADS = 10
|
||||
|
|
Loading…
Reference in New Issue
Block a user