minor update for masking sensitive data in error report (added aCred too)

This commit is contained in:
Miroslav Stampar 2011-03-02 10:09:17 +00:00
parent ad2e4002ea
commit f27f05308a
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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