mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Implementation of an Issue #149
This commit is contained in:
@@ -77,6 +77,7 @@ from lib.core.exception import sqlmapSyntaxException
|
||||
from lib.core.exception import sqlmapUnsupportedDBMSException
|
||||
from lib.core.exception import sqlmapUserQuitException
|
||||
from lib.core.log import FORMATTER
|
||||
from lib.core.log import LOGGER_HANDLER
|
||||
from lib.core.optiondict import optDict
|
||||
from lib.core.purge import purge
|
||||
from lib.core.settings import CODECS_LIST_PAGE
|
||||
@@ -1995,7 +1996,11 @@ def init(inputOptions=AttribDict(), overrideOptions=False):
|
||||
based upon command line and configuration file options.
|
||||
"""
|
||||
|
||||
coloramainit()
|
||||
if not inputOptions.disableColoring:
|
||||
coloramainit()
|
||||
else:
|
||||
if hasattr(LOGGER_HANDLER, "disable_coloring"):
|
||||
LOGGER_HANDLER.disable_coloring = True
|
||||
__setConfAttributes()
|
||||
__setKnowledgeBaseAttributes()
|
||||
__mergeOptions(inputOptions, overrideOptions)
|
||||
|
||||
Reference in New Issue
Block a user