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 2ac1323
Browse filesBrowse the repository at this point in the historyBrowse files
The labs had no exercise for the most common finding, a CNAME to a
deleted app on a hosting provider. lab10-dangling-cname.zone has two
such aliases (Heroku, GitHub Pages), one to a gone host on no known
provider, and one working alias, so -type A,CNAME shows
dangling:<provider>, plain dangling and no hint side by side.
Register it in the -simulate-zone help, README, the site flag table and
unreleased.yml, write its docs/labs.md section with an answer key, and
add a CLI test. Built-in scenarios are now sorted by lab number, so
lab10 follows lab9 in listings. Drop the leftover unreleased tags of
values v0.12.0 shipped (lab7-lab9, type=SRV, type=HTTPS), which the tag
check flags once the values list is not empty.
Fixes#450
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
- Lab 10, a dangling CNAME (`-simulate-zone lab10`): two aliases for deleted apps on Heroku and GitHub Pages are flagged `dangling:heroku` and `dangling:github-pages` with `-type A,CNAME`, a third to a gone host on no known provider is plain `dangling`, and a working alias has no hint. Built-in scenarios are now listed by lab number (#450).
12
+
10
13
### Changed
11
14
- The GitHub Action installs the release that matches it by default: the tag it is pinned to (`uses: TMHSDigital/subenum@v0.12.0`), or for a commit SHA or branch the release its `action.yml` shipped with, instead of the newest release, so a pinned action no longer runs against a binary it was never tested with. `version: latest` still installs the newest release when set (#462).
Copy file name to clipboardExpand all lines: README.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
@@ -313,7 +313,7 @@ This table describes `main`, which can be ahead of the latest release: a release
313
313
|`-simulate`|`false`| Simulation mode: no real DNS queries |
314
314
|`-hit-rate <n>`|`15`| Simulated resolution rate, percent (1-100), applied uniformly to every name |
315
315
|`-seed <n>`|`0`| Simulation seed; the same seed reproduces the same results (line order can vary unless `-t 1`). `0` picks a random seed and prints it |
316
-
|`-simulate-zone <file>`| n/a | Lab mode: answer every query from a scenario file, or a built-in scenario such as `lab1` (`lab1`-`lab9`, with their own wordlist when `-w` is not given), via a local DNS server on `127.0.0.1`; no traffic leaves the machine. See [Labs](docs/labs.md)|
316
+
|`-simulate-zone <file>`| n/a | Lab mode: answer every query from a scenario file, or a built-in scenario such as `lab1` (`lab1`-`lab10`, with their own wordlist when `-w` is not given), via a local DNS server on `127.0.0.1`; no traffic leaves the machine. See [Labs](docs/labs.md)|
317
317
|**Modes**|||
318
318
|`-tui`|`false`| Launch the interactive Terminal UI |
319
319
|`-dry-run`|`false`| Print the plan without scanning: candidates after dedupe and `-exclude`, query and duration estimates (at `-rate`, or `-rate-per-resolver` times the `-r` pool size when that is lower), and the resolver preflight (its only DNS query, also sent once to each `-r` pool resolver, paced by `-rate` and skipped for a target `-exclude` rules out; a failing pool resolver is reported but does not fail the run), then exit; JSON with `-format json` or `jsonl`|
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
@@ -46,7 +46,7 @@
46
46
|`-show-records`| - | In text format, append each result's records (TYPE=value) |
47
47
|`-silent`| - | Pipeline mode: bare result names on stdout, and only errors (and a simulation warning) on stderr |
48
48
|`-simulate`| - | Run in simulation mode without actual DNS queries (for testing) |
49
-
|`-simulate-zone <string>`| - | Lab mode: answer every query from this scenario file, or a built-in scenario such as lab1 (lab1-lab6, lab7, lab8, lab9), via a local DNS server, so no traffic leaves the machine (see the Labs page) |
49
+
|`-simulate-zone <string>`| - | Lab mode: answer every query from this scenario file, or a built-in scenario such as lab1 (lab1-lab6, lab7, lab8, lab9, lab10), via a local DNS server, so no traffic leaves the machine (see the Labs page) lab10: {% include unreleased.html value="simulate-zone=lab10" %}|
50
50
|`-sources <string>`| - | Comma-separated keyless passive sources whose names become candidates and -permute seeds: ct (Certificate Transparency, crt.sh), wayback (Wayback Machine), certspotter (Certificate Transparency, SSLMate Cert Spotter; up to 10 pages, set CERTSPOTTER\_API\_KEY for a higher quota); one HTTPS request per source and target |
51
51
|`-srv`| - | Also look up a built-in list of about 50 service names (\_sip.\_tcp, \_autodiscover.\_tcp, \_ldap.\_tcp, ...) under each target; needs SRV in -type |
52
52
|`-state <string>`| subenum-resume.json | Where a run that was interrupted, ran out of -max-duration or was aborted saves its state for -resume |
|`Recursive`, `Depth`| off, `1`| Enumerate again under each name found. |
128
128
|`MaxQueries`| unlimited | Cap on candidate names tested. |
129
129
|`MaxDuration`{% include unreleased.html library="MaxDuration" %} | unlimited | Time budget from the start of `Run`, not counting the preflight and wildcard probes sent before the first candidate lookup, so `Run` can take longer. Then no new names are tested and the rest are counted in `Stats.Skipped`, with `Stats.Expired` set. |
Copy file name to clipboardExpand all lines: docs/output.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
@@ -35,7 +35,7 @@ A test fails when a field is added to the code but not to these files, so they s
35
35
36
36
A run's results all carry the same time, taken when the run starts. Pass each run's JSONL or CSV file to the next run's `-diff` (as the [GitHub Action](monitoring.html) does with its baseline) and `first_seen` carries forward, so a takeover candidate or an internal address shows how long it has been there.
37
37
38
-
A record's `type` is `A`, `AAAA`, `CNAME`, `NS`, `MX`, `TXT`, `SRV`{% include unreleased.html value="type=SRV" %} or `HTTPS`{% include unreleased.html value="type=HTTPS" %}. Its `value` is an address, a host name (`CNAME`, `NS`), `<preference> <host>` (`MX`), the text (`TXT`), with a backslash and non-printable bytes written as `\DDD`, `<priority> <weight> <port> <target>` (`SRV`), or `<priority> <target>` followed by the `alpn` and `port` parameters, if any (`HTTPS`, such as `1 . alpn=h2,h3 port=443`; a target of `.` names no other host, and an AliasMode record, priority `0`, has no parameters).
38
+
A record's `type` is `A`, `AAAA`, `CNAME`, `NS`, `MX`, `TXT`, `SRV`or `HTTPS`. Its `value` is an address, a host name (`CNAME`, `NS`), `<preference> <host>` (`MX`), the text (`TXT`), with a backslash and non-printable bytes written as `\DDD`, `<priority> <weight> <port> <target>` (`SRV`), or `<priority> <target>` followed by the `alpn` and `port` parameters, if any (`HTTPS`, such as `1 . alpn=h2,h3 port=443`; a target of `.` names no other host, and an AliasMode record, priority `0`, has no parameters).
fs.BoolVar(&f.testMode, "simulate", false, "Run in simulation mode without actual DNS queries (for testing)")
244
244
fs.IntVar(&f.testHitRate, "hit-rate", scan.DefaultHitRate, "In simulation mode, percentage of names that resolve (1-100)")
245
245
fs.Uint64Var(&f.seed, "seed", 0, "In simulation mode, seed for reproducible results (0 = random; the seed used is printed)")
246
-
fs.StringVar(&f.simZone, "simulate-zone", "", "Lab mode: answer every query from this scenario file, or a built-in scenario such as lab1 (lab1-lab6, lab7, lab8, lab9), via a local DNS server, so no traffic leaves the machine (see the Labs page)")
246
+
fs.StringVar(&f.simZone, "simulate-zone", "", "Lab mode: answer every query from this scenario file, or a built-in scenario such as lab1 (lab1-lab6, lab7, lab8, lab9, lab10), via a local DNS server, so no traffic leaves the machine (see the Labs page)")
247
247
fs.Var(&f.outputs, "o", "Write results to `file` (in addition to stdout); repeat for several files, each in -format or in the format named as a prefix, format:path (jsonl:results.jsonl)")
248
248
fs.IntVar(&f.attempts, "attempts", 0, "Total DNS resolution attempts per subdomain, 1 = no retry (default 1)")
249
249
fs.IntVar(&f.retries, "retries", 0, "Deprecated: use -attempts instead")
0 commit comments