Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a0b2798

Browse files
committed
Trivial update
1 parent ec80009 commit a0b2798

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,10 @@ def setColor(message, color=None, bold=False, level=None, istty=None):
944944
except:
945945
level = None
946946
retVal = LOGGER_HANDLER.colorize(message, level)
947+
else:
948+
match = re.search(r"\(([^)]*)\s*fork\)", message)
949+
if match:
950+
retVal = retVal.replace(match.group(1), colored(match.group(1), color="lightgrey"))
947951

948952
return retVal
949953

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.2.21"
21+
VERSION = "1.4.2.22"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

thirdparty/termcolor/termcolor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181

8282
COLORS.update(dict(("light%s" % color, COLORS[color] + 60) for color in COLORS))
8383

84+
# Reference: https://misc.flogisoft.com/bash/tip_colors_and_formatting
85+
COLORS["lightgrey"] = 37
86+
COLORS["darkgrey"] = 90
8487

8588
RESET = '\033[0m'
8689

0 commit comments

Comments
 (0)