Minor cleanup and initial work for #58

This commit is contained in:
Miroslav Stampar
2013-08-09 14:13:48 +02:00
parent 4beef0900d
commit a711c9ed36
7 changed files with 40 additions and 30 deletions

View File

@@ -2768,7 +2768,7 @@ def maskSensitiveData(msg):
retVal = msg
for item in filter(None, map(lambda x: conf.get(x), ("hostname", "googleDork", "aCred", "pCred", "tbl", "db", "col", "user", "cookie", "proxy"))):
for item in filter(None, map(lambda x: conf.get(x), ("hostname", "googleDork", "authCred", "proxyCred", "tbl", "db", "col", "user", "cookie", "proxy"))):
regex = SENSITIVE_DATA_REGEX % re.sub("(\W)", r"\\\1", item)
while extractRegexResult(regex, retVal):
value = extractRegexResult(regex, retVal)