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 e50737a
Browse filesBrowse the repository at this point in the historyBrowse files
Share passive-source fetching across CLI, TUI and library (#355)
The CLI's passiveNames, the TUI's fetchSources and pkg/subenum's
withSourceNames each had their own copy of the "ask every source at
once, sort a Truncated from an error, keep the names" loop. It now
lives once in internal/passive: Gather does the fan-out, FetchAll runs
it over the built-in sources, and Lookup is the shared result (the
CLI's targetSource is an alias, the TUI's sourceLookup embeds it).
passive.UserAgent and passive.AddedLine replace the three hand-built
User-Agent strings and the two copies of the "N names under T, M of
them new candidates" line. Output is unchanged, including the CLI's
and TUI's differently worded failure notes; pkg/subenum's API is
unchanged.
Fixes#355
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/ARCHITECTURE.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Every package under `internal/` and `pkg/`, summarized from its `// Package` com
39
39
|`internal/diff`| Compares two runs' results: new and missing names, changed records (shared by `-diff` and `pkg/subenum`'s `Diff`) |
40
40
|`internal/cliargs`| Parses command lines whose flags may follow positional arguments, shared by subenum and wordlist-gen |
41
41
|`internal/ct`| Looks up subdomain names in Certificate Transparency logs through crt.sh |
42
-
|`internal/passive`| The `Source` interface behind `-sources`, the source registry, the merge of source names into candidates (shared by the CLI and `pkg/subenum`), and the Wayback Machine source |
42
+
|`internal/passive`| The `Source` interface behind `-sources`, the source registry, the fan-out that asks every source at once and the merge of source names into candidates (shared by the CLI, the TUI and `pkg/subenum`), and the Wayback Machine source |
43
43
|`internal/axfr`| Zone transfer attempts and the DNSSEC denial probe within fixed bounds (shared by `-axfr` and `pkg/subenum`'s `ProbeZone`) |
44
44
|`internal/labzone`| Parses `-simulate-zone` scenario files for lab mode |
45
45
|`internal/mcp`| Minimal Model Context Protocol server (JSON-RPC over stdio, tools only) behind `subenum mcp`|
@@ -103,6 +103,7 @@ internal/candidates/candidates.go - Set (New, Add, SourcesOf), RelativeSeeds, Pe
103
103
internal/diff/diff.go - Name, RecordsChanged: the comparison behind -diff-records and subenum.Diff
104
104
internal/ct/ct.go - Client.Names: crt.sh lookup
105
105
internal/passive/passive.go - Source, Known, ParseList, New: the -sources registry; Merge: source names into candidates
106
+
internal/passive/fetch.go - Gather, FetchAll, Lookup: the source fan-out the CLI, TUI and pkg/subenum share
106
107
internal/passive/wayback.go - Wayback.Names: hostnames from the Wayback Machine's CDX index
@@ -341,7 +342,7 @@ With `-permute` (or `-seeds`, which implies it), each target that finished gets
341
342
342
343
### 5.5. Certificate Transparency Seeding
343
344
344
-
With `-ct`, `ct.Client.Names` makes one HTTPS request per target to crt.sh (no API key) and returns the names its certificates cover, relative to the target. `passiveNames` gathers the names, and `passive.Merge` appends those not already in the wordlist after the wordlist entries, so wordlist resume positions stay put. They are only candidates and are resolved like any other; those that resolve also seed `-permute`. A failed lookup is a warning, not a failed scan. A resumed run reuses the saved CT names so its candidate list is the same.
345
+
With `-ct`, `ct.Client.Names` makes one HTTPS request per target to crt.sh (no API key) and returns the names its certificates cover, relative to the target. `passiveNames` gathers the names through `passive.FetchAll`, and `passive.Merge` appends those not already in the wordlist after the wordlist entries, so wordlist resume positions stay put. They are only candidates and are resolved like any other; those that resolve also seed `-permute`. A failed lookup is a warning, not a failed scan. A resumed run reuses the saved CT names so its candidate list is the same.
0 commit comments