-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't working
Description
用neutron extractor提取的值作用不到第二个raw请求包,用nuclei可以
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
Labels
bugSomething isn't workingSomething isn't working