Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/pkg/tmplexec/flow/testcases/nuclei-flow-dns-id.yaml
2072 views
1
id: nuclei-flow-dns
2
3
info:
4
name: Nuclei flow dns
5
author: pdteam
6
severity: info
7
description: Description of the Template
8
reference: https://example-reference-link
9
10
flow: |
11
dns("fetch-ns");
12
template["nameservers"].forEach(nameserver => {
13
set("nameserver",nameserver);
14
dns("probe-ns");
15
});
16
17
dns:
18
- id: "fetch-ns"
19
name: "{{FQDN}}"
20
type: NS
21
matchers:
22
- type: word
23
words:
24
- "IN\tNS"
25
extractors:
26
- type: regex
27
internal: true
28
name: "nameservers"
29
group: 1
30
regex:
31
- "IN\tNS\t(.+)"
32
33
- id: "probe-ns"
34
name: "{{nameserver}}"
35
type: A
36
class: inet
37
retries: 3
38
recursion: true
39
extractors:
40
- type: dsl
41
dsl:
42
- "a"
43