This commit is contained in:
Miroslav Stampar
2019-05-15 00:03:17 +02:00
parent c03d6d71f8
commit b3cbb4d921
2 changed files with 3 additions and 3 deletions

View File

@@ -578,9 +578,9 @@ def storeHashesToFile(attack_dict):
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))
item = "%s:%s\n" % (user, hash_)
else:
item = "%s\n" % hash_.encode(UNICODE_ENCODING)
item = "%s\n" % hash_
if item and item not in items:
items.add(item)