mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 19:43:48 +03:00
Code cleanup
This commit is contained in:
parent
08f7e20c51
commit
1cfd6a6b9d
|
@ -1950,10 +1950,12 @@ def initTechnique(technique=None):
|
||||||
conf.textOnly = True
|
conf.textOnly = True
|
||||||
debugMsg = "restoring switch --text-only"
|
debugMsg = "restoring switch --text-only"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
if kb.injection.conf.string:
|
if kb.injection.conf.string:
|
||||||
conf.string = kb.injection.conf.string
|
conf.string = kb.injection.conf.string
|
||||||
debugMsg = "restoring option --string '%s'" % conf.string
|
debugMsg = "restoring option --string '%s'" % conf.string
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
if kb.injection.conf.regexp:
|
if kb.injection.conf.regexp:
|
||||||
conf.regexp = kb.injection.conf.regexp
|
conf.regexp = kb.injection.conf.regexp
|
||||||
debugMsg = "restoring option --regexp '%s'" % conf.regexp
|
debugMsg = "restoring option --regexp '%s'" % conf.regexp
|
||||||
|
|
|
@ -73,11 +73,11 @@ class injectionDict(advancedDict):
|
||||||
self.suffix = None
|
self.suffix = None
|
||||||
self.clause = None
|
self.clause = None
|
||||||
|
|
||||||
# data is a dict with stype as key and a tuple as value with
|
# data is a dict with various stype, each which is a dict with
|
||||||
# title, where, comment and reqPayload
|
# all the information specific for that stype
|
||||||
self.data = advancedDict()
|
self.data = advancedDict()
|
||||||
|
|
||||||
# conf is a dict with stores current snapshot of important
|
# conf is a dict which stores current snapshot of important
|
||||||
# options used during detection
|
# options used during detection
|
||||||
self.conf = advancedDict()
|
self.conf = advancedDict()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user