minor beautification

This commit is contained in:
Miroslav Stampar 2011-07-31 10:21:47 +00:00
parent 93ae1dfa2b
commit 0627bb02cb
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)):