Patch for an Issue #1024

This commit is contained in:
Miroslav Stampar 2014-12-13 23:32:18 +01:00
parent 9c225557d1
commit 5166675ff5

View File

@ -405,6 +405,7 @@ def attackCachedUsersPasswords():
for user in kb.data.cachedUsersPasswords.keys():
for i in xrange(len(kb.data.cachedUsersPasswords[user])):
if (kb.data.cachedUsersPasswords[user][i] or "").strip():
value = kb.data.cachedUsersPasswords[user][i].lower().split()[0]
if value in lut:
kb.data.cachedUsersPasswords[user][i] += "%s clear-text password: %s" % ('\n' if kb.data.cachedUsersPasswords[user][i][-1] != '\n' else '', lut[value])