()
| 488 | if method == PAYLOAD.METHOD.COMPARISON: |
| 489 | # Generate payload used for comparison |
| 490 | def genCmpPayload(): |
| 491 | sndPayload = agent.cleanupPayload(test.response.comparison, origValue=value if place not in (PLACE.URI, PLACE.CUSTOM_POST, PLACE.CUSTOM_HEADER) and BOUNDED_INJECTION_MARKER not in (value or "") else None) |
| 492 | |
| 493 | # Forge response payload by prepending with |
| 494 | # boundary's prefix and appending the boundary's |
| 495 | # suffix to the test's ' <payload><comment> ' |
| 496 | # string |
| 497 | boundPayload = agent.prefixQuery(sndPayload, prefix, where, clause) |
| 498 | boundPayload = agent.suffixQuery(boundPayload, comment, suffix, where) |
| 499 | cmpPayload = agent.payload(place, parameter, newValue=boundPayload, where=where) |
| 500 | |
| 501 | return cmpPayload |
| 502 | |
| 503 | # Useful to set kb.matchRatio at first based on False response content |
| 504 | kb.matchRatio = None |
no test coverage detected
searching dependent graphs…