diff --git a/lib/core/common.py b/lib/core/common.py index 39b314f60..df31eb283 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -590,10 +590,13 @@ class Backend(object): retVal = False if Backend.getVersion() is not None and version is not None: + _version = unArrayizeValue(Backend.getVersion()) + _version = re.sub(r"[<>= ]", "", _version) + try: - retVal = LooseVersion(Backend.getVersion()) >= LooseVersion(version) + retVal = LooseVersion(_version) >= LooseVersion(version) except: - retVal = str(Backend.getVersion()) >= str(version) + retVal = str(_version) >= str(version) return retVal @@ -3563,6 +3566,8 @@ def unArrayizeValue(value): >>> unArrayizeValue(['1']) '1' + >>> unArrayizeValue('1') + '1' >>> unArrayizeValue(['1', '2']) '1' >>> unArrayizeValue([['a', 'b'], 'c']) diff --git a/lib/core/settings.py b/lib/core/settings.py index 381b626fc..6ba9ac4e9 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from thirdparty import six from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.5.10.16" +VERSION = "1.5.10.17" 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)