mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Refactoring of funcionality for finding out if stacking is available
This commit is contained in:
@@ -2399,6 +2399,24 @@ def isTechniqueAvailable(technique):
|
||||
else:
|
||||
return getTechniqueData(technique) is not None
|
||||
|
||||
def isStackingAvailable():
|
||||
"""
|
||||
Returns True whether techniques using stacking are available
|
||||
"""
|
||||
|
||||
retVal = False
|
||||
|
||||
if PAYLOAD.TECHNIQUE.STACKED in kb.injection.data:
|
||||
retVal = True
|
||||
else:
|
||||
for technique in getPublicTypeMembers(PAYLOAD.TECHNIQUE, True):
|
||||
_ = getTechniqueData(technique)
|
||||
if _ and "stacked" in _["title"].lower():
|
||||
retVal = True
|
||||
break
|
||||
|
||||
return retVal
|
||||
|
||||
def isInferenceAvailable():
|
||||
"""
|
||||
Returns True whether techniques using inference technique are available
|
||||
|
||||
Reference in New Issue
Block a user