Skip to content

How to match across multiple requests? #4532

Closed Answered by ehsandeep
mikerott asked this question in Q&A
Discussion options

You must be logged in to vote

@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.

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].*)">'

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mikerott
Comment options

@ehsandeep
Comment options

@mikerott
Comment options

@ehsandeep
Comment options

@mikerott
Comment options

Answer selected by ehsandeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants