From e1ce16144afaf3a6c5ef9d5162f672d8a88d59f4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 10 Mar 2016 15:42:01 +0100 Subject: [PATCH] Fixes #1753 --- lib/core/session.py | 2 +- lib/core/settings.py | 2 +- lib/core/target.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/session.py b/lib/core/session.py index 4aa4cb49f..799342bcc 100644 --- a/lib/core/session.py +++ b/lib/core/session.py @@ -26,7 +26,7 @@ def setDbms(dbms): hashDBWrite(HASHDB_KEYS.DBMS, dbms) _ = "(%s)" % ("|".join([alias for alias in SUPPORTED_DBMS])) - _ = re.search("^%s" % _, dbms, re.I) + _ = re.search(r"\A%s( |\Z)" % _, dbms, re.I) if _: dbms = _.group(1) diff --git a/lib/core/settings.py b/lib/core/settings.py index da8c338f2..c1386c70f 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version and site -VERSION = "1.0.0.16" +VERSION = "1.0.0.17" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/lib/core/target.py b/lib/core/target.py index 535d477ff..286cb278a 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -451,7 +451,7 @@ def _resumeDBMS(): dbms = value.lower() dbmsVersion = [UNKNOWN_DBMS_VERSION] _ = "(%s)" % ("|".join([alias for alias in SUPPORTED_DBMS])) - _ = re.search("%s ([\d\.]+)" % _, dbms, re.I) + _ = re.search(r"\A%s (.*)" % _, dbms, re.I) if _: dbms = _.group(1).lower()