Returns True whether current (kb.)technique is heavy-query based >>> pushValue(kb.injection.data) >>> setTechnique(PAYLOAD.TECHNIQUE.STACKED) >>> kb.injection.data[getTechnique()] = [test for test in getSortedInjectionTests() if "heavy" in test["title"].lower()][0] >>> isHeavyQ
(technique=None)
| 3489 | return getTechniqueData(technique) is not None |
| 3490 | |
| 3491 | def isHeavyQueryBased(technique=None): |
| 3492 | """ |
| 3493 | Returns True whether current (kb.)technique is heavy-query based |
| 3494 | |
| 3495 | >>> pushValue(kb.injection.data) |
| 3496 | >>> setTechnique(PAYLOAD.TECHNIQUE.STACKED) |
| 3497 | >>> kb.injection.data[getTechnique()] = [test for test in getSortedInjectionTests() if "heavy" in test["title"].lower()][0] |
| 3498 | >>> isHeavyQueryBased() |
| 3499 | True |
| 3500 | >>> kb.injection.data = popValue() |
| 3501 | """ |
| 3502 | |
| 3503 | retVal = False |
| 3504 | |
| 3505 | technique = technique or getTechnique() |
| 3506 | |
| 3507 | if isTechniqueAvailable(technique): |
| 3508 | data = getTechniqueData(technique) |
| 3509 | if data and "heavy query" in data["title"].lower(): |
| 3510 | retVal = True |
| 3511 | |
| 3512 | return retVal |
| 3513 | |
| 3514 | def isStackingAvailable(): |
| 3515 | """ |
no test coverage detected
searching dependent graphs…