From be76928293de74136aafe26e5de349e1233039f8 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 24 May 2012 20:53:01 +0000 Subject: [PATCH] minor fix --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index f690fa13a..0f63083b3 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2564,7 +2564,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"))): - regex = SENSITIVE_DATA_REGEX % item + regex = SENSITIVE_DATA_REGEX % re.sub("(\W)", r"\\\1", item) while extractRegexResult(regex, retVal): value = extractRegexResult(regex, retVal) retVal = retVal.replace(value, '*' * len(value))