mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-23 01:56:36 +03:00
minor beautification
This commit is contained in:
parent
93ae1dfa2b
commit
0627bb02cb
|
@ -2636,7 +2636,7 @@ def maskSensitiveData(msg):
|
||||||
|
|
||||||
retVal = 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
|
regex = SENSITIVE_DATA_REGEX % item
|
||||||
while extractRegexResult(regex, retVal):
|
while extractRegexResult(regex, retVal):
|
||||||
value = extractRegexResult(regex, retVal)
|
value = extractRegexResult(regex, retVal)
|
||||||
|
|
|
@ -887,7 +887,7 @@ class Enumeration:
|
||||||
query = safeStringFormat(query, conf.db)
|
query = safeStringFormat(query, conf.db)
|
||||||
|
|
||||||
value = inject.getValue(query, blind=False)
|
value = inject.getValue(query, blind=False)
|
||||||
value = arrayizeValue(filter(lambda x: x, value))
|
value = arrayizeValue(filter(None, value))
|
||||||
|
|
||||||
if not isNoneValue(value):
|
if not isNoneValue(value):
|
||||||
if len(value) > 0 and not isinstance(value[0], (list, tuple)):
|
if len(value) > 0 and not isinstance(value[0], (list, tuple)):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user