Skip to content

extractor提取的值作用不到第二个raw请求包 #17

@eoo911

Description

@eoo911

用neutron extractor提取的值作用不到第二个raw请求包,用nuclei可以

Image Image Image
yaml

id: helper-functions-examples
info:
  name: RAW Template with Helper Functions
  author: pdteam
  severity: info
variables:
  username: "admin22"
  password: "default_password22"
  test: "1.txt"

http:
  - raw:
      # Note for the integration test: dsl expression should not contain commas
      - |
        GET /{{test}} HTTP/1.1
        Host: {{Hostname}}
        User-Agent: ddddd

        01: {{base64("Hello")}}
        02: {{base64(1234)}}

    extractors:
      - type: regex
        name: numbers
        part: body
        regex:
          - "([0-9]+)"
        internal: true
      - type: dsl  # type of the extractor
        name: len
        part: body
        dsl:
          - len(body) # dsl expression value to extract from response
        internal: true
    matchers:
      - type: status
        status:
          - 200
  - raw:
    - |
      GET /{{numbers}}.txt HTTP/1.1
      Host: {{Hostname}}
     
      01: {{base64("Hello")}}
      02: {{base64(1234)}}
      numbers: {{numbers}}
      body: {{len}}  

    matchers:
      - type: status
        status:
          - 200

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions