From fd8028bb18822eb2afec3c25502002058741c2d3 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 22 Oct 2019 14:43:29 +0200 Subject: [PATCH] Fixes #3977 --- lib/core/common.py | 5 ++++- lib/core/settings.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 6bc0a2300..2c3812bb0 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -3194,7 +3194,10 @@ def isDBMSVersionAtLeast(minimum): parts[1] = filterStringValue(parts[1], '[0-9]') version = '.'.join(parts) - version = float(filterStringValue(version, '[0-9.]')) + correction + try: + version = float(filterStringValue(version, '[0-9.]')) + correction + except ValueError: + return None if isinstance(minimum, six.string_types): if '.' in minimum: diff --git a/lib/core/settings.py b/lib/core/settings.py index 91287d2c5..2092d4e89 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.10.24" +VERSION = "1.3.10.25" 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)