From 0627bb02cb360807c51022314190db9cc78bd96a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 31 Jul 2011 10:21:47 +0000 Subject: [PATCH] minor beautification --- lib/core/common.py | 2 +- plugins/generic/enumeration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index d26e2d926..94961492d 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2636,7 +2636,7 @@ def maskSensitiveData(msg): retVal = msg - for item in filter(lambda x: x, map(lambda x: conf.get(x), ['hostname', 'googleDork', 'aCred', 'pCred', 'tbl', 'db', 'col', 'user', 'cookie'])): + for item in filter(None, map(lambda x: conf.get(x), ['hostname', 'googleDork', 'aCred', 'pCred', 'tbl', 'db', 'col', 'user', 'cookie'])): regex = SENSITIVE_DATA_REGEX % item while extractRegexResult(regex, retVal): value = extractRegexResult(regex, retVal) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index e27ef9728..fd841b077 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -887,7 +887,7 @@ class Enumeration: query = safeStringFormat(query, conf.db) value = inject.getValue(query, blind=False) - value = arrayizeValue(filter(lambda x: x, value)) + value = arrayizeValue(filter(None, value)) if not isNoneValue(value): if len(value) > 0 and not isinstance(value[0], (list, tuple)):