mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +03:00
Potential fix for an Issue #379
This commit is contained in:
parent
6cab3d4759
commit
c5ae967fe0
|
@ -334,12 +334,17 @@ def attackCachedUsersPasswords():
|
||||||
if kb.data.cachedUsersPasswords:
|
if kb.data.cachedUsersPasswords:
|
||||||
results = dictionaryAttack(kb.data.cachedUsersPasswords)
|
results = dictionaryAttack(kb.data.cachedUsersPasswords)
|
||||||
|
|
||||||
|
lut = {}
|
||||||
for (_, hash_, password) in results:
|
for (_, hash_, password) in results:
|
||||||
|
lut[hash_.lower()] = password
|
||||||
|
|
||||||
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])):
|
||||||
if kb.data.cachedUsersPasswords[user][i] and hash_.lower() in kb.data.cachedUsersPasswords[user][i].lower()\
|
_ = kb.data.cachedUsersPasswords[user][i]
|
||||||
and 'clear-text password' not in kb.data.cachedUsersPasswords[user][i].lower():
|
if _:
|
||||||
kb.data.cachedUsersPasswords[user][i] += "%s clear-text password: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', password)
|
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_])
|
||||||
|
|
||||||
def attackDumpedTable():
|
def attackDumpedTable():
|
||||||
if kb.data.dumpedTable:
|
if kb.data.dumpedTable:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user