MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / isTechniqueAvailable

Function isTechniqueAvailable

lib/core/common.py:3475–3489  ·  view source on GitHub ↗

Returns True if there is injection data which sqlmap could use for technique specified >>> pushValue(kb.injection.data) >>> kb.injection.data[PAYLOAD.TECHNIQUE.ERROR] = [test for test in getSortedInjectionTests() if "error" in test["title"].lower()][0] >>> isTechniqueAvailable(PAYL

(technique)

Source from the content-addressed store, hash-verified

3473 return kb.injection.data.get(technique if technique is not None else getTechnique())
3474
3475def isTechniqueAvailable(technique):
3476 """
3477 Returns True if there is injection data which sqlmap could use for technique specified
3478
3479 >>> pushValue(kb.injection.data)
3480 >>> kb.injection.data[PAYLOAD.TECHNIQUE.ERROR] = [test for test in getSortedInjectionTests() if "error" in test["title"].lower()][0]
3481 >>> isTechniqueAvailable(PAYLOAD.TECHNIQUE.ERROR)
3482 True
3483 >>> kb.injection.data = popValue()
3484 """
3485
3486 if conf.technique and isinstance(conf.technique, list) and technique not in conf.technique:
3487 return False
3488 else:
3489 return getTechniqueData(technique) is not None
3490
3491def isHeavyQueryBased(technique=None):
3492 """

Callers 15

getValueFunction · 0.90
payloadMethod · 0.90
xpCmdshellEvalCmdMethod · 0.90
_webFileInjectMethod · 0.90
webInitMethod · 0.90
getDbsMethod · 0.90
getTablesMethod · 0.90
getColumnsMethod · 0.90
getStatementsMethod · 0.90
writeFileMethod · 0.90
dumpTableMethod · 0.90
searchDbMethod · 0.90

Calls 1

getTechniqueDataFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…