mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-09 17:51:33 +00:00
Refactoring of funcionality for finding out if stacking is available
This commit is contained in:
parent
8b4f72322a
commit
dc41484b3f
8 changed files with 46 additions and 30 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue