From f27f05308a19158571856bc23ac3ceea75fcb24d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 2 Mar 2011 10:09:17 +0000 Subject: [PATCH] minor update for masking sensitive data in error report (added aCred too) --- lib/core/common.py | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 91631bc3a..65d268c71 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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) diff --git a/lib/core/settings.py b/lib/core/settings.py index 7dd7555fd..0f351244b 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -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[^\s]*%s[^\s]*)\s" +SENSITIVE_DATA_REGEX = "(\s|=)(?P[^\s=]*%s[^\s]*)\s" # Maximum number of threads (avoiding connection issues and/or DoS) MAX_NUMBER_OF_THREADS = 10