mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
refactoring, code clearing and removal of obsolete switch --longest-common
This commit is contained in:
parent
534f51f9fc
commit
fb9d7cdfaa
11 changed files with 31 additions and 131 deletions
|
|
@ -1943,7 +1943,20 @@ def initTechnique(technique=None):
|
|||
|
||||
if data:
|
||||
kb.pageTemplate, kb.errorIsNone = getPageTemplate(data.templatePayload, kb.injection.place)
|
||||
kb.matchRatio = data.matchRatio
|
||||
|
||||
kb.matchRatio = data.conf.matchRatio
|
||||
if data.conf.textOnly:
|
||||
conf.textOnly = True
|
||||
debugMsg = "restoring switch --text-only"
|
||||
logger.debug(debugMsg)
|
||||
if data.conf.string:
|
||||
conf.string = data.conf.string
|
||||
debugMsg = "restoring option --string '%s'" % data.conf.string
|
||||
logger.debug(debugMsg)
|
||||
if data.conf.regexp:
|
||||
conf.regexp = data.conf.regexp
|
||||
debugMsg = "restoring option --regexp '%s'" % data.conf.regexp
|
||||
logger.debug(debugMsg)
|
||||
else:
|
||||
warnMsg = "there is no injection data available for technique "
|
||||
warnMsg += "'%s'" % enumValueToNameLookup(PAYLOAD.TECHNIQUE, technique)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue