Skip to content

How to allow assig extractors to specific requests and enable global cookie reuse? #1270

Closed Answered by ehsandeep
dawid-czarnecki asked this question in Q&A
Discussion options

You must be logged in to vote

@dawid-czarnecki both features are already supported, I'm adding a valid template example below, more info about using request condition in the template - https://nuclei.projectdiscovery.io/templating-guide/protocols/http/#request-condition

requests:
  - raw:
    - |
      GET /test-nuclei.php HTTP/1.1
      Host: {{Hostname}}

    - |
      GET /test-nuclei.php?param={{output1}} HTTP/1.1
      Host: {{Hostname}}

    cookie-reuse: true
    req-condition: true
    extractors:
      - type: regex
        internal: true
        part: body_1
        name: output1
        regex:
          - '.*'

      - type: regex
        name: output2
        part: body_2
        regex:
          - '.*'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dawid-czarnecki
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
Converted from issue

This discussion was converted from issue #644 on November 19, 2021 08:53.