mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Minor cleanup
This commit is contained in:
@@ -340,11 +340,9 @@ def attackCachedUsersPasswords():
|
|||||||
|
|
||||||
for user in kb.data.cachedUsersPasswords.keys():
|
for user in kb.data.cachedUsersPasswords.keys():
|
||||||
for i in xrange(len(kb.data.cachedUsersPasswords[user])):
|
for i in xrange(len(kb.data.cachedUsersPasswords[user])):
|
||||||
_ = kb.data.cachedUsersPasswords[user][i]
|
value = kb.data.cachedUsersPasswords[user][i].lower()
|
||||||
if _:
|
if value in lut and "clear-text password" not in value:
|
||||||
hash_ = _.split()[0].lower()
|
kb.data.cachedUsersPasswords[user][i] += "%s clear-text password: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', lut[value])
|
||||||
if hash_ in lut and "clear-text password" not in _:
|
|
||||||
kb.data.cachedUsersPasswords[user][i] += "%s clear-text password: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', lut[hash_])
|
|
||||||
|
|
||||||
def attackDumpedTable():
|
def attackDumpedTable():
|
||||||
if kb.data.dumpedTable:
|
if kb.data.dumpedTable:
|
||||||
|
|||||||
Reference in New Issue
Block a user