mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-09 08:00:36 +03:00
update
This commit is contained in:
parent
1cfd6a6b9d
commit
daf5662eab
|
@ -425,8 +425,11 @@ def checkSqlInjection(place, parameter, value):
|
||||||
injection.data[stype].matchRatio = kb.matchRatio
|
injection.data[stype].matchRatio = kb.matchRatio
|
||||||
|
|
||||||
injection.conf.textOnly = conf.textOnly
|
injection.conf.textOnly = conf.textOnly
|
||||||
injection.conf.string = conf.string
|
injection.conf.string = conf.string
|
||||||
injection.conf.regexp = conf.regexp
|
injection.conf.regexp = conf.regexp
|
||||||
|
injection.conf.uCols = conf.uCols
|
||||||
|
injection.conf.uChar = conf.uChar
|
||||||
|
injection.conf.timeSec = conf.timeSec
|
||||||
|
|
||||||
if hasattr(test, "details"):
|
if hasattr(test, "details"):
|
||||||
for detailKey, detailValue in test.details.items():
|
for detailKey, detailValue in test.details.items():
|
||||||
|
|
|
@ -1946,20 +1946,11 @@ def initTechnique(technique=None):
|
||||||
kb.matchRatio = data.matchRatio
|
kb.matchRatio = data.matchRatio
|
||||||
|
|
||||||
# Restoring stored conf options
|
# Restoring stored conf options
|
||||||
if kb.injection.conf.textOnly:
|
for key, value in kb.injection.conf.items():
|
||||||
conf.textOnly = True
|
if value:
|
||||||
debugMsg = "restoring switch --text-only"
|
setattr(conf, key, value)
|
||||||
logger.debug(debugMsg)
|
debugMsg = "restoring configuration option '%s' (%s)" % (key, value)
|
||||||
|
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
|
|
||||||
logger.debug(debugMsg)
|
|
||||||
else:
|
else:
|
||||||
warnMsg = "there is no injection data available for technique "
|
warnMsg = "there is no injection data available for technique "
|
||||||
warnMsg += "'%s'" % enumValueToNameLookup(PAYLOAD.TECHNIQUE, technique)
|
warnMsg += "'%s'" % enumValueToNameLookup(PAYLOAD.TECHNIQUE, technique)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user