diff --git a/lib/core/common.py b/lib/core/common.py index 7ebf3a58d..890dd96b3 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -587,7 +587,15 @@ class Backend(object): @staticmethod def isVersionGreaterOrEqualThan(version): - return Backend.getVersion() is not None and version is not None and distutils.version.LooseVersion(str(Backend.getVersion()) or ' ') >= distutils.version.LooseVersion(str(version) or ' ') + retVal = False + + if Backend.getVersion() is not None and version is not None: + try: + retVal = distutils.version.LooseVersion(Backend.getVersion()) >= distutils.version.LooseVersion(version) + except: + retVal = str(Backend.getVersion()) >= str(version) + + return retVal @staticmethod def isOs(os): diff --git a/lib/core/settings.py b/lib/core/settings.py index 4df92e1d5..5d1c7a973 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.12.35" +VERSION = "1.4.12.36" 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)