From 6623c3f877eef88bdffe6ac0e42a18008a02a37d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 22 May 2016 14:22:31 +0200 Subject: [PATCH] Pesky bug fix (nobody noticed :) --- lib/controller/checks.py | 7 ++++--- lib/core/settings.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 07f822f97..c9e390bd7 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -177,10 +177,11 @@ def checkSqlInjection(place, parameter, value): lower, upper = int(match.group(1)), int(match.group(2)) for _ in (lower, upper): if _ > 1: + __ = 2 * (_ - 1) + 1 if _ == lower else 2 * _ unionExtended = True - test.request.columns = re.sub(r"\b%d\b" % _, str(2 * _), test.request.columns) - title = re.sub(r"\b%d\b" % _, str(2 * _), title) - test.title = re.sub(r"\b%d\b" % _, str(2 * _), test.title) + test.request.columns = re.sub(r"\b%d\b" % _, str(__), test.request.columns) + title = re.sub(r"\b%d\b" % _, str(__), title) + test.title = re.sub(r"\b%d\b" % _, str(__), test.title) # Skip test if the user's wants to test only for a specific # technique diff --git a/lib/core/settings.py b/lib/core/settings.py index 15149fdb4..a9c011df6 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.42" +VERSION = "1.0.5.43" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")