Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/integration_tests/flow/iterate-values-flow.yaml
2073 views
1
id: extract-emails
2
3
info:
4
name: Extract Email IDs from Response
5
author: pdteam
6
severity: info
7
8
9
flow: |
10
http(1)
11
for(let email of template["emails"]) {
12
set("email",email);
13
http(2);
14
}
15
16
http:
17
- method: GET
18
path:
19
- "{{BaseURL}}"
20
21
extractors:
22
- type: regex
23
name: emails
24
regex:
25
- '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'
26
internal: true
27
28
- method: GET
29
path:
30
- "{{BaseURL}}/user/{{base64(email)}}"
31
32
matchers:
33
- type: word
34
words:
35
- "Welcome"
36
37
extractors:
38
- type: dsl
39
name: email
40
dsl:
41
- email
42