Couple of bug fixes

This commit is contained in:
Miroslav Štampar 2026-06-11 16:17:56 +02:00
parent be216041e2
commit 85b8d36620
4 changed files with 7 additions and 7 deletions

View file

@ -616,7 +616,7 @@ def _finalize(retVal, results, processes, attack_info=None):
removals.add((user, hash_))
hashDBWrite(hash_, word)
for item in attack_info or []:
for item in list(attack_info or []):
if (item[0][0], item[0][1]) in removals:
attack_info.remove(item)
@ -1081,7 +1081,7 @@ def dictionaryAttack(attack_dict):
if item and hash_ not in keys:
resumed = hashDBRetrieve(hash_)
if not resumed:
if resumed is None:
attack_info.append(item)
user_hash.append(item[0])
else: