added --cookie for maskSensitiveData too

This commit is contained in:
Miroslav Stampar 2011-05-19 15:42:59 +00:00
parent bd1b07fbc2
commit f40c6b2ce7

View File

@ -2424,7 +2424,7 @@ def maskSensitiveData(msg):
retVal = msg retVal = msg
for item in filter(lambda x: x, [conf.hostname, conf.googleDork, conf.aCred, conf.tbl, conf.db, conf.col, conf.user]): for item in filter(lambda x: x, [conf.hostname, conf.googleDork, conf.aCred, conf.tbl, conf.db, conf.col, conf.user, conf.cookie]):
regex = SENSITIVE_DATA_REGEX % item regex = SENSITIVE_DATA_REGEX % item
while extractRegexResult(regex, retVal): while extractRegexResult(regex, retVal):
value = extractRegexResult(regex, retVal) value = extractRegexResult(regex, retVal)