From 305bfd9d300b4bd1f129a3b20dae816ead4c6857 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 4 Apr 2016 13:50:10 +0200 Subject: [PATCH] Implements #1763 --- lib/core/agent.py | 4 ++++ lib/core/settings.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index b4414d7d7..bbd90466f 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -39,6 +39,7 @@ from lib.core.settings import CUSTOM_INJECTION_MARK_CHAR from lib.core.settings import DEFAULT_COOKIE_DELIMITER from lib.core.settings import DEFAULT_GET_POST_DELIMITER from lib.core.settings import GENERIC_SQL_COMMENT +from lib.core.settings import NULL from lib.core.settings import PAYLOAD_DELIMITER from lib.core.settings import REPLACEMENT_MARKER from lib.core.unescaper import unescaper @@ -747,6 +748,9 @@ class Agent(object): intoRegExp = intoRegExp.group(1) query = query[:query.index(intoRegExp)] + position = 0 + char = NULL + for element in xrange(0, count): if element > 0: unionQuery += ',' diff --git a/lib/core/settings.py b/lib/core/settings.py index caf4fca3e..707666740 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 (...) -VERSION = "1.0.4.1" +VERSION = "1.0.4.2" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")