From a0b279848d0ef550a5760df904f6a65a62d32215 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 7 Feb 2020 00:30:02 +0100 Subject: [PATCH] Trivial update --- lib/core/common.py | 4 ++++ lib/core/settings.py | 2 +- thirdparty/termcolor/termcolor.py | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index e498e5d8a..133db9993 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -944,6 +944,10 @@ def setColor(message, color=None, bold=False, level=None, istty=None): except: level = None retVal = LOGGER_HANDLER.colorize(message, level) + else: + match = re.search(r"\(([^)]*)\s*fork\)", message) + if match: + retVal = retVal.replace(match.group(1), colored(match.group(1), color="lightgrey")) return retVal diff --git a/lib/core/settings.py b/lib/core/settings.py index 3dd0c4803..d345b9d6c 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.2.21" +VERSION = "1.4.2.22" 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) diff --git a/thirdparty/termcolor/termcolor.py b/thirdparty/termcolor/termcolor.py index bac57f28a..ddea6dd59 100644 --- a/thirdparty/termcolor/termcolor.py +++ b/thirdparty/termcolor/termcolor.py @@ -81,6 +81,9 @@ COLORS = dict( COLORS.update(dict(("light%s" % color, COLORS[color] + 60) for color in COLORS)) +# Reference: https://misc.flogisoft.com/bash/tip_colors_and_formatting +COLORS["lightgrey"] = 37 +COLORS["darkgrey"] = 90 RESET = '\033[0m'