mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-21 11:13:47 +00:00
Merge branch 'master' of github.com:sqlmapproject/sqlmap
This commit is contained in:
commit
bdd2592848
5 changed files with 18 additions and 6 deletions
|
|
@ -51,6 +51,7 @@ from lib.core.common import singleTimeWarnMessage
|
|||
from lib.core.common import UnicodeRawConfigParser
|
||||
from lib.core.common import urldecode
|
||||
from lib.core.common import urlencode
|
||||
from lib.core.convert import base64unpickle
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
|
|
@ -1769,6 +1770,9 @@ def _mergeOptions(inputOptions, overrideOptions):
|
|||
@type inputOptions: C{instance}
|
||||
"""
|
||||
|
||||
if inputOptions.pickledOptions:
|
||||
inputOptions = base64unpickle(inputOptions.pickledOptions)
|
||||
|
||||
if inputOptions.configFile:
|
||||
configFileParser(inputOptions.configFile)
|
||||
|
||||
|
|
@ -2054,9 +2058,9 @@ def init(inputOptions=AttribDict(), overrideOptions=False):
|
|||
|
||||
if not inputOptions.disableColoring:
|
||||
coloramainit()
|
||||
else:
|
||||
if hasattr(LOGGER_HANDLER, "disable_coloring"):
|
||||
LOGGER_HANDLER.disable_coloring = True
|
||||
elif hasattr(LOGGER_HANDLER, "disable_coloring"):
|
||||
LOGGER_HANDLER.disable_coloring = True
|
||||
|
||||
_setConfAttributes()
|
||||
_setKnowledgeBaseAttributes()
|
||||
_mergeOptions(inputOptions, overrideOptions)
|
||||
|
|
|
|||
|
|
@ -196,6 +196,7 @@ optDict = {
|
|||
"answers": "string",
|
||||
"beep": "boolean",
|
||||
"checkPayload": "boolean",
|
||||
"checkWaf": "boolean",
|
||||
"cleanup": "boolean",
|
||||
"dependencies": "boolean",
|
||||
"disableColoring": "boolean",
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import StringIO
|
|||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
import traceback
|
||||
|
||||
from extra.beep.beep import beep
|
||||
from lib.controller.controller import start
|
||||
|
|
@ -231,6 +232,7 @@ def runCase(switches=None, parse=None):
|
|||
|
||||
if exception:
|
||||
logger.error("unhandled exception occurred ('%s')" % str(exception))
|
||||
tback = traceback.format_exc()
|
||||
retVal = False
|
||||
elif result is False: # if None, ignore
|
||||
logger.error("the test did not run")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue