From b3cbb4d92123757c23cb2d9b0a22ad6b6f1e2eda Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 15 May 2019 00:03:17 +0200 Subject: [PATCH] Fixes #3664 --- lib/core/settings.py | 2 +- lib/utils/hash.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 8321ee244..e39690834 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.3.5.89" +VERSION = "1.3.5.90" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index 028aa58d4..3b92873b7 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -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)