mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-27 19:25:25 +00:00
* 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
43 lines
770 B
YAML
43 lines
770 B
YAML
id: dns-ns-probe
|
|
|
|
info:
|
|
name: Nuclei flow dns ns probe
|
|
author: pdteam
|
|
severity: info
|
|
description: Description of the Template
|
|
reference: https://example-reference-link
|
|
|
|
flow: |
|
|
dns("fetch-ns");
|
|
for(let ns of template["nameservers"]) {
|
|
set("nameserver",ns);
|
|
dns("probe-ns");
|
|
};
|
|
|
|
dns:
|
|
- id: "fetch-ns"
|
|
name: "{{FQDN}}"
|
|
type: NS
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "IN\tNS"
|
|
internal: true
|
|
extractors:
|
|
- type: regex
|
|
internal: true
|
|
name: "nameservers"
|
|
group: 1
|
|
regex:
|
|
- "IN\tNS\t(.+)"
|
|
|
|
- id: "probe-ns"
|
|
name: "{{nameserver}}"
|
|
type: A
|
|
class: inet
|
|
retries: 3
|
|
recursion: true
|
|
extractors:
|
|
- type: dsl
|
|
dsl:
|
|
- "a" |