Skip to content

How do I avoid escaping certain variables with nuclei? #4606

Answered by tarunKoyalwar
Yimyom3 asked this question in Q&A
Discussion options

You must be logged in to vote

@xxxxxxxxyyyy according to template you have provided you are incorrectly using dynamic extractors or extractors in general . since extracted needs to be written under extractors key something like,

id: escapes-value

info:
  name: extracted value will be automatically escaped
  author: none
  severity: info

http:
  - raw:
      - |
        POST /test?{{Path}} HTTP/1.1
        Host: {{Hostname}}

        id=1

      - |
        POST /test HTTP/1.1
        Host: {{Hostname}}

        id={{replace('{{extracted}}','\\','\\\\')}}

    matchers:
      - type: status
        status:
          - 200

    unsafe: true
    extractors:
      - type: regex
        name: extracted
        part: body_1

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by olearycrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
2 participants
Converted from issue

This discussion was converted from issue #4605 on January 09, 2024 14:12.