This commit is contained in:
Miroslav Stampar 2020-12-26 00:49:42 +01:00
parent 8c8aae9170
commit bb02eefb70
2 changed files with 10 additions and 2 deletions

View File

@ -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):

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
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)