mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-21 17:16:35 +03:00
Trivial update
This commit is contained in:
parent
ec80009812
commit
a0b279848d
|
@ -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
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
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)
|
||||
|
|
3
thirdparty/termcolor/termcolor.py
vendored
3
thirdparty/termcolor/termcolor.py
vendored
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user