dsl matcher with request condition not working as expected #4451
-
Hello, requests:
- method: GET
path:
- "{{BaseURL}}/some-stuff-here"
- "{{BaseURL}}/other-stuff-here"
req-condition: true
matchers:
- type: dsl
dsl:
- "status_code_1 == 404"
- "status_code_2 == 200 && contains(body_2, 'whatever')"
condition: and When I run the template using Am I missing something or misunderstood dsl matcher usage or this is a bug in nuclei? |
Beta Was this translation helpful? Give feedback.
Answered by
mrnfrancesco
May 19, 2022
Replies: 1 comment
-
I got it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mrnfrancesco
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got it.
All the
status_code_X
will exist only on the last response, hence all the requests before will fail and the last one can match all the conditions.