From 83e1daab9603c248bb6a10eb9d1640c1848d14f5 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 4 Jul 2019 11:18:55 +0200 Subject: [PATCH] Fixes #3796 --- lib/core/convert.py | 5 +++++ lib/core/settings.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/core/convert.py b/lib/core/convert.py index 224bc9aa0..746908a95 100644 --- a/lib/core/convert.py +++ b/lib/core/convert.py @@ -164,8 +164,13 @@ def encodeHex(value, binary=True): True >>> encodeHex("123", binary=False) '313233' + >>> encodeHex(b"123"[0]) == b"31" + True """ + if isinstance(value, int): + value = six.unichr(value) + if isinstance(value, six.text_type): value = value.encode(UNICODE_ENCODING) diff --git a/lib/core/settings.py b/lib/core/settings.py index f3ca6232c..ab1dcf1fc 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.7.5" +VERSION = "1.3.7.6" 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)