mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +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 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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user