Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/pkg/tmplexec/flow/testcases/flow-request-condition.yaml
4538 views
1
id: flow-request-condition
2
3
info:
4
name: Flow with request condition (3 raw requests)
5
author: test
6
severity: info
7
8
flow: http()
9
10
http:
11
- raw:
12
- |
13
GET /step1 HTTP/1.1
14
Host: {{Hostname}}
15
16
- |
17
GET /step2 HTTP/1.1
18
Host: {{Hostname}}
19
20
- |
21
GET /step3?token={{auth}} HTTP/1.1
22
Host: {{Hostname}}
23
24
matchers-condition: and
25
matchers:
26
- type: word
27
part: body_1
28
words:
29
- "step1-ok"
30
31
- type: word
32
part: body_2
33
words:
34
- "step2-ok"
35
36
- type: word
37
part: body_3
38
words:
39
- "step3-ok"
40
41
extractors:
42
- type: regex
43
name: auth
44
internal: true
45
part: body_2
46
group: 1
47
regex:
48
- 'token=([a-z0-9]+)'
49
50