some refactoring (skipping duplicate messages in case that UNION/ERROR techniques failed and BOOLEAN/TIMED/STACKED are not available)

This commit is contained in:
Miroslav Stampar
2012-01-07 19:30:35 +00:00
parent 18930539cd
commit ff52931140
5 changed files with 35 additions and 28 deletions

View File

@@ -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