mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
More fix for --technique resume
This commit is contained in:
@@ -80,6 +80,7 @@ def checkSqlInjection(place, parameter, value):
|
||||
if kb.endDetection:
|
||||
break
|
||||
|
||||
proceed = True
|
||||
title = test.title
|
||||
stype = test.stype
|
||||
clause = test.clause
|
||||
@@ -202,6 +203,21 @@ def checkSqlInjection(place, parameter, value):
|
||||
logger.debug(debugMsg)
|
||||
continue
|
||||
|
||||
if len(kb.injections) > 0:
|
||||
for resumedInj in kb.injections:
|
||||
if resumedInj.place == place and resumedInj.parameter \
|
||||
== parameter and stype in resumedInj.data:
|
||||
debugMsg = "skipping test '%s' because this " % title
|
||||
debugMsg += "technique has already been detected "
|
||||
debugMsg += "in a previous run"
|
||||
logger.debug(debugMsg)
|
||||
|
||||
proceed = False
|
||||
break
|
||||
|
||||
if not proceed:
|
||||
continue
|
||||
|
||||
infoMsg = "testing '%s'" % title
|
||||
logger.info(infoMsg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user