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

Function isInferenceAvailable

lib/core/common.py:3538–3549  ·  view source on GitHub ↗

Returns True whether techniques using inference technique are available >>> pushValue(kb.injection.data) >>> kb.injection.data[PAYLOAD.TECHNIQUE.BOOLEAN] = getSortedInjectionTests()[0] >>> isInferenceAvailable() True >>> kb.injection.data = popValue()

()

Source from the content-addressed store, hash-verified

3536 return retVal
3537
3538def isInferenceAvailable():
3539 """
3540 Returns True whether techniques using inference technique are available
3541
3542 >>> pushValue(kb.injection.data)
3543 >>> kb.injection.data[PAYLOAD.TECHNIQUE.BOOLEAN] = getSortedInjectionTests()[0]
3544 >>> isInferenceAvailable()
3545 True
3546 >>> kb.injection.data = popValue()
3547 """
3548
3549 return any(isTechniqueAvailable(_) for _ in (PAYLOAD.TECHNIQUE.BOOLEAN, PAYLOAD.TECHNIQUE.STACKED, PAYLOAD.TECHNIQUE.TIME))
3550
3551def setOptimize():
3552 """

Callers 13

getDbsMethod · 0.90
getTablesMethod · 0.90
getColumnsMethod · 0.90
getStatementsMethod · 0.90
dumpTableMethod · 0.90
searchDbMethod · 0.90
searchTableMethod · 0.90
searchColumnMethod · 0.90
getUsersMethod · 0.90
getPasswordHashesMethod · 0.90
getPrivilegesMethod · 0.90
getTablesMethod · 0.90

Calls 1

isTechniqueAvailableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…