Fix for an Issue #477

This commit is contained in:
Miroslav Stampar 2013-06-29 20:55:48 +02:00
parent 991cafc4e4
commit a1842f44f5

View File

@ -370,7 +370,7 @@ def storeHashesToFile(attack_dict):
with open(filename, "w+") as f: with open(filename, "w+") as f:
for user, hashes in attack_dict.items(): for user, hashes in attack_dict.items():
for hash_ in hashes: for hash_ in hashes:
hash_ = hash_.split()[0] if hash_ else hash_ hash_ = hash_.split()[0] if hash_ and hash_.strip() else hash_
if hash_ and hash_ != NULL and hashRecognition(hash_): if hash_ and hash_ != NULL and hashRecognition(hash_):
item = None item = None
if user and not user.startswith(DUMMY_USER_PREFIX): if user and not user.startswith(DUMMY_USER_PREFIX):