mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
Minor cleanup
This commit is contained in:
parent
c5ae967fe0
commit
cf8e5d535d
|
@ -340,11 +340,9 @@ def attackCachedUsersPasswords():
|
|||
|
||||
for user in kb.data.cachedUsersPasswords.keys():
|
||||
for i in xrange(len(kb.data.cachedUsersPasswords[user])):
|
||||
_ = kb.data.cachedUsersPasswords[user][i]
|
||||
if _:
|
||||
hash_ = _.split()[0].lower()
|
||||
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_])
|
||||
value = kb.data.cachedUsersPasswords[user][i].lower()
|
||||
if value in lut and "clear-text password" not in value:
|
||||
kb.data.cachedUsersPasswords[user][i] += "%s clear-text password: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', lut[value])
|
||||
|
||||
def attackDumpedTable():
|
||||
if kb.data.dumpedTable:
|
||||
|
|
Loading…
Reference in New Issue
Block a user