diff --git a/lib/core/settings.py b/lib/core/settings.py index 9cd7c44e2..e52ff5039 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.4.5.26" +VERSION = "1.4.5.27" 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/hashdb.py b/lib/utils/hashdb.py index dc8c503e7..9e43316be 100644 --- a/lib/utils/hashdb.py +++ b/lib/utils/hashdb.py @@ -68,7 +68,7 @@ class HashDB(object): @staticmethod def hashKey(key): - key = getBytes(key if isinstance(key, six.text_type) else repr(key)) + key = getBytes(key if isinstance(key, six.text_type) else repr(key), errors="xmlcharrefreplace") retVal = int(hashlib.md5(key).hexdigest(), 16) & 0x7fffffffffffffff # Reference: http://stackoverflow.com/a/4448400 return retVal