Returns True whether techniques using stacking are available >>> pushValue(kb.injection.data) >>> kb.injection.data[PAYLOAD.TECHNIQUE.STACKED] = [test for test in getSortedInjectionTests() if "stacked" in test["title"].lower()][0] >>> isStackingAvailable() True >>> kb.injec
()
| 3512 | return retVal |
| 3513 | |
| 3514 | def isStackingAvailable(): |
| 3515 | """ |
| 3516 | Returns True whether techniques using stacking are available |
| 3517 | |
| 3518 | >>> pushValue(kb.injection.data) |
| 3519 | >>> kb.injection.data[PAYLOAD.TECHNIQUE.STACKED] = [test for test in getSortedInjectionTests() if "stacked" in test["title"].lower()][0] |
| 3520 | >>> isStackingAvailable() |
| 3521 | True |
| 3522 | >>> kb.injection.data = popValue() |
| 3523 | """ |
| 3524 | |
| 3525 | retVal = False |
| 3526 | |
| 3527 | if PAYLOAD.TECHNIQUE.STACKED in kb.injection.data: |
| 3528 | retVal = True |
| 3529 | else: |
| 3530 | for technique in getPublicTypeMembers(PAYLOAD.TECHNIQUE, True): |
| 3531 | data = getTechniqueData(technique) |
| 3532 | if data and "stacked" in data["title"].lower(): |
| 3533 | retVal = True |
| 3534 | break |
| 3535 | |
| 3536 | return retVal |
| 3537 | |
| 3538 | def isInferenceAvailable(): |
| 3539 | """ |
no test coverage detected
searching dependent graphs…