From 8cc516dc5f78bd9f2807f3f568ee5cb606cb000d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 5 Mar 2020 14:02:27 +0100 Subject: [PATCH] Bug fix (wrong coloring in some cases) --- lib/core/common.py | 4 ++-- lib/core/settings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 4a67d5e54..06b6d2a33 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -954,8 +954,8 @@ def setColor(message, color=None, bold=False, level=None, istty=None): if match: retVal = retVal.replace(match.group(1), colored(match.group(1), color="lightgrey")) - for match in re.finditer(r"[^\w]'([^\n']+)'", message): # single-quoted (Note: watch-out for the banner) - retVal = retVal.replace(match.group(1), colored(match.group(1), color="lightgrey")) + for match in re.finditer(r"([^\w])'([^\n']+)'", message): # single-quoted (Note: watch-out for the banner) + retVal = retVal.replace(match.group(0), "%s'%s'" % (match.group(1), colored(match.group(2), color="lightgrey"))) return retVal diff --git a/lib/core/settings.py b/lib/core/settings.py index 2a67c1438..21a2f4901 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.4.3.0" +VERSION = "1.4.3.1" 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)