mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
some refactoring (skipping duplicate messages in case that UNION/ERROR techniques failed and BOOLEAN/TIMED/STACKED are not available)
This commit is contained in:
@@ -2486,7 +2486,7 @@ def getTechniqueData(technique=None):
|
||||
|
||||
return retVal
|
||||
|
||||
def isTechniqueAvailable(technique=None):
|
||||
def isTechniqueAvailable(technique):
|
||||
"""
|
||||
Returns True if there is injection data which sqlmap could use for
|
||||
technique specified
|
||||
@@ -2497,6 +2497,9 @@ def isTechniqueAvailable(technique=None):
|
||||
else:
|
||||
return getTechniqueData(technique) is not None
|
||||
|
||||
def isInferenceAvailable():
|
||||
return any(isTechniqueAvailable(_) for _ in (PAYLOAD.TECHNIQUE.BOOLEAN, PAYLOAD.TECHNIQUE.STACKED, PAYLOAD.TECHNIQUE.TIME))
|
||||
|
||||
def setOptimize():
|
||||
#conf.predictOutput = True
|
||||
conf.keepAlive = True
|
||||
|
||||
Reference in New Issue
Block a user