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 3dc97d0
Browse filesBrowse the repository at this point in the historyBrowse files
Add wordlist-gen -from to learn labels from earlier results (#423)
wordlist-gen built lists only from common prefixes, the domain's own
terms and -combine words, so an organisation's naming habits found on
one domain could not seed the list for the next. Add -from (repeatable)
and -min-count: each results file is read with the parser -diff and
-seeds use, the labels below each name's apex are counted, and they
are written first, most frequent first, ahead of the common prefixes,
which are not repeated.
The results-file parser moves from internal/cli to internal/diff
(diff.Parse, diff.Load) so the tool can share it; the CLI's
parseBaseline now wraps it and its tests are unchanged.
Fixes#423
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`-from` reads earlier subenum results in any output format (text, JSON, JSONL or CSV, the formats `-diff` reads), takes the labels of each name below its apex (`api.k8s.example.com` gives `api` and `k8s`), and writes them first, most frequent first, ahead of the common prefixes, which are not repeated. The apex is `-domain` when a name ends in it, and otherwise the registrable domain (`example.com`, `acme.co.uk`).
39
+
35
40
### Parameters
36
41
37
42
| Flag | Description | Default |
@@ -41,6 +46,8 @@ go build -buildvcs=false -o wordlist-gen wordlist-gen.go
41
46
|`-common`| Include common subdomain prefixes |`true`|
42
47
|`-domain`| Domain to extract terms from |`""` (empty) |
43
48
|`-combine`| Comma-separated prefixes to combine with other terms; each must be a valid DNS label |`""` (empty) |
49
+
|`-from`| Earlier subenum results file to learn labels from, most frequent first; repeatable | none |
50
+
|`-min-count`| With `-from`, drop labels seen fewer than this many times |`1`|
44
51
|`-v`| Print every generated entry to stdout |`false`|
0 commit comments