nuclei/integration_tests/http/variables.yaml
Shubham Rasal 45cc676f96
Evaluate payload variables (#3503)
* Evaluate payload variables

* Add variables evaluation

* Extend variables test

- to check evaluation of global variables in variables
- to check evaluation of golbal variables in payload

* Add default and cli variables to websocket, whois and dns proto

- use url.Parse with urlutil.Parse
2023-04-12 01:50:58 +05:30

32 lines
576 B
YAML

id: variables-example
info:
name: Variables Example
author: pdteam
severity: info
variables:
a1: "value"
a2: "{{base64('{{Host}}')}}"
requests:
- raw:
- |
GET / HTTP/1.1
Host: {{FQDN}}
Test: {{a1}}
Another: {{a2}}
Email: {{ username }}
payloads:
username:
- jon.doe@{{ FQDN }}
stop-at-first-match: true
matchers-condition: or
matchers:
- type: word
condition: and
words:
- "value"
- "MTI3LjAuMC4x" # 127.0.0.1
- "jon.doe@127.0.0.1"