Skip to content

Commit 5166675

Browse files
committed
Patch for an Issue sqlmapproject#1024
1 parent 9c22555 commit 5166675

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/utils/hash.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,10 @@ def attackCachedUsersPasswords():
405405

406406
for user in kb.data.cachedUsersPasswords.keys():
407407
for i in xrange(len(kb.data.cachedUsersPasswords[user])):
408-
value = kb.data.cachedUsersPasswords[user][i].lower().split()[0]
409-
if value in lut:
410-
kb.data.cachedUsersPasswords[user][i] += "%s clear-text password: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', lut[value])
408+
if (kb.data.cachedUsersPasswords[user][i] or "").strip():
409+
value = kb.data.cachedUsersPasswords[user][i].lower().split()[0]
410+
if value in lut:
411+
kb.data.cachedUsersPasswords[user][i] += "%s clear-text password: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', lut[value])
411412

412413
def attackDumpedTable():
413414
if kb.data.dumpedTable:

0 commit comments

Comments
 (0)