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)
| 3473 | return kb.injection.data.get(technique if technique is not None else getTechnique()) |
| 3474 | |
| 3475 | def 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 | |
| 3491 | def isHeavyQueryBased(technique=None): |
| 3492 | """ |
no test coverage detected
searching dependent graphs…