From 2d59a1051553215d2d2d92d2974165c2992fee75 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 31 May 2016 10:25:01 +0200 Subject: [PATCH] Better patch than last commit --- lib/core/agent.py | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 214412b40..69ad5c599 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -281,7 +281,7 @@ class Agent(object): where = kb.injection.data[kb.technique].where if where is None else where comment = kb.injection.data[kb.technique].comment if comment is None else comment - if Backend.getIdentifiedDbms() == DBMS.ACCESS and any(_ in comment or "" for _ in ("--", GENERIC_SQL_COMMENT)): + if Backend.getIdentifiedDbms() == DBMS.ACCESS and any((comment or "").startswith(_) for _ in ("--", "[GENERIC_SQL_COMMENT]")): comment = queries[DBMS.ACCESS].comment.query if comment is not None: diff --git a/lib/core/settings.py b/lib/core/settings.py index d98896c8d..2ae33b56b 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.5.118" +VERSION = "1.0.5.119" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")