proper fix

This commit is contained in:
Miroslav Stampar 2011-08-01 23:48:38 +00:00
parent ad4584da70
commit 457f501bbd
2 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ class BigArray(list):
index = y / BIGARRAY_CHUNK_LENGTH
offset = y % BIGARRAY_CHUNK_LENGTH
chunk = self.chunks[index]
if isinstance(chunk, list) and len(chunk) >= offset:
if isinstance(chunk, list):
return chunk[offset]
else:
self._checkcache(index)

View File

@ -278,7 +278,7 @@ def attackDumpedTable():
value = table[column]['values'][i]
if hashRecognition(value, isOracle, isMySQL):
if colUser:
if colUser and i < len(table[colUser]['values']):
if table[colUser]['values'][i] not in attack_dict:
attack_dict[table[colUser]['values'][i]] = []