minor fix

This commit is contained in:
Miroslav Stampar 2011-01-07 17:53:17 +00:00
parent ed2aed972f
commit 8e83a26acf
2 changed files with 2 additions and 4 deletions

View File

@ -259,6 +259,7 @@ def attackDumpedTable():
if value.lower() == hash_.lower(): if value.lower() == hash_.lower():
table[column]['values'][i] += " (%s)" % password table[column]['values'][i] += " (%s)" % password
table[column]['length'] = max(table[column]['length'], table[column]['values'][i])
def hashRecognition(value): def hashRecognition(value):
retVal = None retVal = None

View File

@ -1358,10 +1358,7 @@ class Enumeration:
logger.critical(errMsg) logger.critical(errMsg)
for column, columnEntries in entries.items(): for column, columnEntries in entries.items():
if lengths[column] < len(column): length = max(lengths[column], len(column))
length = len(column)
else:
length = lengths[column]
kb.data.dumpedTable[column] = { "length": length, kb.data.dumpedTable[column] = { "length": length,
"values": columnEntries } "values": columnEntries }