From 23d0a04f322d93790b5d15c3bc115a80a51b5052 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 21 May 2019 11:01:08 +0200 Subject: [PATCH] Trivial update (space check for --suffix) --- lib/core/agent.py | 3 +++ lib/core/settings.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 129d4e70b..1a2cf9ce8 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -298,6 +298,9 @@ class Agent(object): pass elif suffix and not comment: + if re.search(r"\w\Z", expression) and re.search(r"\A\w", suffix): + expression += " " + expression += suffix.replace('\\', BOUNDARY_BACKSLASH_MARKER) return re.sub(r";\W*;", ";", expression) diff --git a/lib/core/settings.py b/lib/core/settings.py index 09bf36e85..cdeb5e075 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.5.120" +VERSION = "1.3.5.121" 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)