From 75dd1d6a2bfd1e8823aad7588051ab31c0f833cc Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 27 May 2012 21:54:56 +0000 Subject: [PATCH] minor fix --- lib/utils/hash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index f51e819c4..f3a8e2ef1 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -830,9 +830,9 @@ def dictionaryAttack(attack_dict): fp = open(filename, "w+") singleTimeLogMessage("writing uncracked hashes to file '%s' for eventual further processing" % filename) if user and not user.startswith(DUMMY_USER_PREFIX): - fp.write("%s:%s\n" % (user, hash_)) + fp.write("%s:%s\n" % (user.encode(UNICODE_ENCODING), hash_.encode(UNICODE_ENCODING))) else: - fp.write("%s\n" % hash_) + fp.write("%s\n" % hash_.encode(UNICODE_ENCODING)) if fp: fp.close()