nuclei/integration_tests/flow/iterate-values-flow.yaml
Tarun Koyalwar 02a9b86dd7
fix missing results in flow template + feature: internal matchers using internal: true (#4582)
* log warnings + use scanContext in flow

* refactor flow to use scanContext + log all events

* feat: internal matcher

* fix integration test

* bug fix extractor: merge dynamic values, fix missing extractors in file

* flow: fix 'No Results Found' if last statement output is false

* fix unit test
2024-01-08 05:12:11 +05:30

41 lines
648 B
YAML

id: extract-emails
info:
name: Extract Email IDs from Response
author: pdteam
severity: info
flow: |
http(1)
for(let email of template["emails"]) {
set("email",email);
http(2);
}
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
name: emails
regex:
- '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'
internal: true
- method: GET
path:
- "{{BaseURL}}/user/{{base64(email)}}"
matchers:
- type: word
words:
- "Welcome"
extractors:
- type: dsl
name: email
dsl:
- email