Code cleanup

This commit is contained in:
Bernardo Damele 2011-01-14 15:16:34 +00:00
parent 08f7e20c51
commit 1cfd6a6b9d
2 changed files with 5 additions and 3 deletions

View File

@ -1950,10 +1950,12 @@ def initTechnique(technique=None):
conf.textOnly = True
debugMsg = "restoring switch --text-only"
logger.debug(debugMsg)
if kb.injection.conf.string:
conf.string = kb.injection.conf.string
debugMsg = "restoring option --string '%s'" % conf.string
logger.debug(debugMsg)
if kb.injection.conf.regexp:
conf.regexp = kb.injection.conf.regexp
debugMsg = "restoring option --regexp '%s'" % conf.regexp

View File

@ -73,11 +73,11 @@ class injectionDict(advancedDict):
self.suffix = None
self.clause = None
# data is a dict with stype as key and a tuple as value with
# title, where, comment and reqPayload
# data is a dict with various stype, each which is a dict with
# all the information specific for that stype
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
self.conf = advancedDict()