From 45553f0efc1c89ab2ed3836bf4255f73f44e95e8 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 26 Aug 2021 17:46:56 +0200 Subject: [PATCH] Fixes #4779 --- lib/core/settings.py | 2 +- plugins/dbms/postgresql/takeover.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index b074fbbda..d5f4a8316 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.8.4" +VERSION = "1.5.8.5" 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/plugins/dbms/postgresql/takeover.py b/plugins/dbms/postgresql/takeover.py index e1f6241a3..49cc787c1 100644 --- a/plugins/dbms/postgresql/takeover.py +++ b/plugins/dbms/postgresql/takeover.py @@ -51,7 +51,7 @@ class Takeover(GenericTakeover): banVer = kb.bannerFp["dbmsVersion"] - if not banVer: + if not banVer or not banVer[0].isdigit(): errMsg = "unsupported feature on unknown version of PostgreSQL" raise SqlmapUnsupportedFeatureException(errMsg) elif distutils.version.LooseVersion(banVer) >= distutils.version.LooseVersion("10"):