Minor fix

This commit is contained in:
Miroslav Stampar 2013-02-13 15:10:31 +01:00
parent cbb5c79d29
commit 8138d1318e

View File

@ -317,9 +317,8 @@ def storeHashesToFile(attack_dict):
with open(filename, "w+") as f:
for user, hashes in attack_dict.items():
for hash_ in hashes:
if not hash_ or hash_ == NULL or not hashRecognition(hash_):
continue
hash_ = hash_.split()[0] if hash_ else hash_
if hash_ and hash_ != NULL and hashRecognition(hash_):
item = None
if user and not user.startswith(DUMMY_USER_PREFIX):
item = "%s:%s\n" % (user.encode(UNICODE_ENCODING), hash_.encode(UNICODE_ENCODING))