-
I need to check two different endpoints at a server to:
How can I write a template such that the matchers under each request are "and"ed? Example (pseudo-code) attempt:
I want the two matchers to be AND, even though I've made two requests to acquire the full set of conditions. For example, version |
Beta Was this translation helpful? Give feedback.
Answered by
ehsandeep
Jun 4, 2022
Replies: 1 comment 6 replies
-
@mikerott below example should work, in this case requests:
- method: GET
path:
- "{{RootURL}}/"
- "{{RootURL}}/vulnerable/index.php?queryparam=exec(whoami)"
redirects: true
matchers-condition: and
matchers:
- type: word
part: header
words:
- "X-Proof-Of-Vuln: root"
- type: regex
part: body
regex:
- '<meta name="version" content="(1\.[0-4].*)">' |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
ehsandeep
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mikerott below example should work, in this case
matchers-condition: and
will ensure to return results only when all conditions are true for all the defined requests.