You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 32cb96f
Browse filesBrowse the repository at this point in the historyBrowse files
Say takeover hints come from CNAME, NS, SRV or HTTPS (#487)
dns.HintsTakeover accepts CNAME, NS, SRV and HTTPS since #419 and
#438, but the -sarif help, the -sarif note, the README, action.yml,
the monitoring, ARCHITECTURE and advanced-usage docs, the MCP types
schema and a writer comment still said CNAME or NS. ARCHITECTURE's
SARIF section also lists dangling-srv now. Flags table regenerated.
Fixes#487
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ Tools like [puredns](https://github.com/d3mondev/puredns), [shuffledns](https://
87
87
|**Resolve**| Worker pool (`-t`) · UDP with TCP fallback, DNS over TLS and DNS over HTTPS · resolver pools with benching, canaries and re-validation (`-r`) · `A`, `AAAA`, `CNAME`, `NS`, `MX`, `TXT`, `SRV` and `HTTPS` records (`-type`) |
88
88
|**Stay polite**| Wire-level rate limit (`-rate`, `-rate-per-resolver`) that adapts under load (`-auto-rate`) · query and time budgets (`-max-queries`, `-max-duration`) · scope exclusions (`-exclude`) · `-dry-run` to see the plan first |
89
89
|**Trust the output**| Multi-probe wildcard fingerprinting · per-outcome accounting and a run-quality verdict (`-stats`) · reliability guard · retry of inconclusive names (`-retry-inconclusive`) · resumable runs (`-resume`) |
90
-
|**Spot problems**| Dangling CNAMEand NS takeover hints, with a provider list you can extend · internal addresses leaked into public DNS · SARIF for GitHub code scanning (`-sarif`) |
90
+
|**Spot problems**| Dangling CNAME, NS, SRV and HTTPS takeover hints, with a provider list you can extend · internal addresses leaked into public DNS · SARIF for GitHub code scanning (`-sarif`) |
91
91
|**Fit your workflow**|`text`, `json`, streaming `jsonl` and `csv` · pipe-clean stdout (`-silent`) · `-diff` monitoring and a GitHub Action · interactive TUI · Go library · MCP server for AI agents |
92
92
|**Teach and test**|`-simulate` with zero network I/O · lab scenarios served by a local DNS server (`-simulate-zone`), with [six guided exercises](docs/labs.md)|
93
93
@@ -300,7 +300,7 @@ This table describes `main`, which can be ahead of the latest release: a release
300
300
|`-progress`|`true`| Live progress line on stderr. Off by default when stderr is not a terminal; passing `-progress` there prints whole progress lines instead of redrawing one |
301
301
|`-log-format <fmt>`|`text`| Diagnostics on stderr: `text`, or `json` for one JSON object per line (`time`, `level`, `kind`, `target`, `message`, and `settings` codes on engine notices). Progress is then an event, only with an explicit `-progress`. Results on stdout are unchanged |
302
302
|`-stats <file>`| n/a | Write a JSON run-quality report (outcomes, queries sent, verdict); see [Run-quality report](#run-quality-report)|
303
-
|`-sarif <file>`| n/a | Write takeover candidates as SARIF 2.1.0 for GitHub code scanning; needs CNAMEor NS in `-type`|
303
+
|`-sarif <file>`| n/a | Write takeover candidates as SARIF 2.1.0 for GitHub code scanning; needs CNAME, NS, SRV or HTTPS in `-type`|
304
304
|`-takeover-providers <file>`| n/a | Extra takeover-prone services for the `provider:` hint, one `<suffix> <name>` per line (`.example-cdn.net example-cdn`; `#` comments allowed). They are added to the built-in list; an entry for a listed suffix replaces it, and a name of `-` removes the suffix. The longest matching suffix wins. See [Subdomain takeover hints](#subdomain-takeover-hints)|
305
305
|`-takeover-providers-only`|`false`| Use only the `-takeover-providers` file, without the built-in list |
Copy file name to clipboardExpand all lines: docs/ARCHITECTURE.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,7 @@ tools/licenses/main.go - THIRD_PARTY_LICENSES for release archives and t
218
218
***Purpose**: Thread-safe output that keeps stdout pipe-clean. Resolved subdomains go to stdout; everything else (progress, verbose diagnostics, notices, errors) goes to stderr.
219
219
***Implementation**:
220
220
*`output.Writer` with mutex-protected methods, created with `output.New` (stdout plus an optional file) or `output.NewFile` (file only; used by the TUI so the alt-screen viewport keeps the terminal):
221
-
*`Emit` - writes one `output.Result` (the engine's `scan.Result` plus the CLI's `Change`, `PreviousRecords` and `Permutation`; one result type flows from engine to writers). In `text` format it prints `Found: <domain>` on a terminal, or the bare name when stdout is piped (`SetPlain`), and the bare name to the output file; `-show-records` (`SetShowRecords`) appends `TYPE=value` pairs. In `json` format results are streamed as array elements as they arrive, and `Finish` closes the array; `jsonl` streams one object per line; `csv` streams `subdomain,type,value` rows with a header, plus a `simulated` column under `-simulate`, a `takeover_candidate` column when `-type` includes `CNAME`or `NS`, a `change` column with `-diff`, and, last, a `sources` column (each result's sources joined with `;`). The format is selected with `-format text|json|jsonl|csv` (`output.ParseFormat`, default `text`).
221
+
*`Emit` - writes one `output.Result` (the engine's `scan.Result` plus the CLI's `Change`, `PreviousRecords` and `Permutation`; one result type flows from engine to writers). In `text` format it prints `Found: <domain>` on a terminal, or the bare name when stdout is piped (`SetPlain`), and the bare name to the output file; `-show-records` (`SetShowRecords`) appends `TYPE=value` pairs. In `json` format results are streamed as array elements as they arrive, and `Finish` closes the array; `jsonl` streams one object per line; `csv` streams `subdomain,type,value` rows with a header, plus a `simulated` column under `-simulate`, a `takeover_candidate` column when `-type` includes `CNAME`, `NS`, `SRV`or `HTTPS`, a `change` column with `-diff`, and, last, a `sources` column (each result's sources joined with `;`). The format is selected with `-format text|json|jsonl|csv` (`output.ParseFormat`, default `text`).
222
222
*`Progress` / `ProgressDone` - a carriage-return progress line on stderr, or whole lines when `SetProgressLines` is on.
223
223
*`Info` / `Error` - informational and error lines on stderr, cleared around the progress line.
224
224
*`Finish` - closes the streamed JSON array, flushes CSV, and returns the first error writing the output file.
@@ -363,7 +363,7 @@ With `-ct`, `ct.Client.Names` makes one HTTPS request per target to crt.sh (no A
363
363
364
364
### 5.7. SARIF Output
365
365
366
-
`-sarif <file>` writes the run's takeover candidates (results whose CNAME`dns.TakeoverHint` marked as dangling or pointing at a takeover-prone provider, and names delegated to a name server that does not resolve, `dangling-ns`) as a SARIF 2.1.0 log with `output.WriteSARIF`, atomically, for GitHub code scanning. It needs `CNAME`or `NS` in `-type`. A run with no candidates writes a valid document with no results.
366
+
`-sarif <file>` writes the run's takeover candidates (results whose CNAME, or AliasMode HTTPS target, `dns.TakeoverHint` marked as dangling or pointing at a takeover-prone provider, names delegated to a name server that does not resolve, `dangling-ns`, and services whose SRV target does not exist, `dangling-srv`) as a SARIF 2.1.0 log with `output.WriteSARIF`, atomically, for GitHub code scanning. It needs `CNAME`, `NS`, `SRV`or `HTTPS` in `-type`. A run with no candidates writes a valid document with no results.
Copy file name to clipboardExpand all lines: docs/_includes/flags.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@
40
40
|`-resume <string>`| - | Resume a run that was interrupted, ran out of -max-duration or was aborted, from its state file (no other arguments but the pacing flags -rate, -rate-per-resolver, -t, -timeout, -attempts, -auto-rate, -no-abort and -max-duration) |
41
41
|`-retries <int>`| - | Deprecated: use -attempts instead |
42
42
|`-retry-inconclusive`| - | After each scan, look up once more (against -dns-server) every name that timed out, was refused or failed; names it resolves are reported, but not expanded by -recursive |
43
-
|`-sarif <string>`| - | Write takeover candidates to this file as SARIF 2.1.0, for GitHub code scanning (needs CNAMEor NS in -type) |
43
+
|`-sarif <string>`| - | Write takeover candidates to this file as SARIF 2.1.0, for GitHub code scanning (needs CNAME, NS, SRV or HTTPS in -type) |
44
44
|`-seed <uint>`| - | In simulation mode, seed for reproducible results (0 = random; the seed used is printed) |
Copy file name to clipboardExpand all lines: docs/monitoring.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ jobs:
128
128
| `token` | `github.token` | Token for downloading the release and the baseline artifact |
129
129
130
130
Outputs: `verdict`, `resumed`{% include unreleased.html action="resumed" %} (`true` when the run continued a stopped scan), `found` (including `-permute` hits), `added`, `removed`, `changed`{% include unreleased.html action="changed" %} (with `-diff-records`),
131
-
`takeovers`{% include unreleased.html action="takeovers" %} (takeover candidates among the names found; needs `CNAME`or `NS` in `-type`),
131
+
`takeovers`{% include unreleased.html action="takeovers" %} (takeover candidates among the names found; needs `CNAME`, `NS`, `SRV` or `HTTPS` in `-type`),
132
132
`internal`{% include unreleased.html action="internal" %} (names answering with an address that is not public), and the paths `results` (JSONL),
133
133
`stats`(the run-quality report) and `changes`{% include unreleased.html action="changes" %} (JSONL, one line per added, removed or
134
134
changed name with a `change` field; empty when there were no previous results to
fs.BoolVar(&f.retryIncon, "retry-inconclusive", false, "After each scan, look up once more (against -dns-server) every name that timed out, was refused or failed; names it resolves are reported, but not expanded by -recursive")
267
267
fs.StringVar(&f.inconFile, "inconclusive", "", "Write the names still without an answer (timeout, refused, other) to this file, one per line, to rescan with -w")
268
268
fs.StringVar(&f.statsFile, "stats", "", "Write a JSON run-quality report (outcomes, queries sent, verdict) to this file")
269
-
fs.StringVar(&f.sarifFile, "sarif", "", "Write takeover candidates to this file as SARIF 2.1.0, for GitHub code scanning (needs CNAMEor NS in -type)")
269
+
fs.StringVar(&f.sarifFile, "sarif", "", "Write takeover candidates to this file as SARIF 2.1.0, for GitHub code scanning (needs CNAME, NS, SRV or HTTPS in -type)")
270
270
fs.StringVar(&f.exclude, "exclude", "", "Comma-separated out-of-scope names and *.parent patterns; never queried or expanded")
271
271
fs.StringVar(&f.excludeFile, "exclude-file", "", "File of out-of-scope names and *.parent patterns, one per line (# comments allowed)")
272
272
fs.StringVar(&f.providersFile, "takeover-providers", "", "File of takeover-prone services, one \"<suffix> <name>\" per line (.example-cdn.net example-cdn; # comments allowed; name - removes a suffix), added to the built-in list for takeover hints")
0 commit comments