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 70b1c06
Browse filesBrowse the repository at this point in the historyBrowse files
Count every flag that can read standard input (-w, -dL, -r,
-exclude-file, -takeover-providers) before any input is read, so a
second reader is a usage error instead of failing on an empty list.
Compare -o files with samePath (case-insensitive on Windows and macOS
for files not yet created), and refuse an -inconclusive, -stats or
-sarif file that is also an -o file or another of them.
subenum mcp validates a scan call with the new subenum.Config.Validate
before counting it, so a call that cannot start no longer spends one of
the session's -max-calls.
Fixes#378
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
## [Unreleased]
9
9
10
10
### Added
11
+
-`pkg/subenum`: `Config.Validate()` reports the error `Run` would return for a config, such as an unsupported type, an invalid `Exclude` pattern or `ErrNoWords`, without starting a scan or sending a query (#378).
11
12
-`-simulate-zone` accepts the lab scenarios built into every binary by name, so release, container and `go install` users run the labs without cloning the repository: `subenum -simulate-zone lab1 lab.example` works from any directory (`lab1`, `lab1-first-scan` and `lab1-first-scan.zone` all name it), and without `-w` the scan uses the labs' own wordlist (`-w ""` keeps the bundled 5,000-word list). A path, or a file that exists under the given name, is still read from disk, and an unknown name lists the built-in scenarios (#354).
12
13
-`pkg/subenum`: `Result.Sources` names what proposed each result, as the CLI's `sources` field does: `wordlist`, and each `Config.Sources` entry that returned it, named by a `Name()` method when it has one (`ct`, `wayback`, `axfr` for the built-in sources) or as `Sources[i]` (#273).
13
14
-`-o` can be given more than once, and a format prefix gives a file its own format: `-o names.txt -o jsonl:results.jsonl` writes bare names for the next tool and JSONL with the run-quality report in one run, where a pipeline used to scan twice or extract names with `jq`. A file without a prefix uses `-format`, as before. Every file gets the full current results, also under `-diff`; on a run stopped with state for `-resume`, only an `-o` file that is also the `-diff` file is left unchanged. The same path given twice is a usage error, and `-tui` takes the first file (#334).
@@ -84,6 +85,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
84
85
- The GitHub Action passes every line of a multi-line `args: |` block to subenum instead of only the first. `fail-on: never` no longer fails the step when a single-domain scan fails (exit 1 with an `unreliable` verdict); a usage error or a run with no report still does. A second use in the same job no longer reports the first use's verdict and counts when its own scan exits before writing a report. The `found` output and the summary table count `-permute` hits too (#363).
85
86
- The GitHub Action's job summary cuts its takeover and change lists to 50 entries in `jq` itself instead of piping into `head -50`, which under the step's `pipefail` could fail the step on a very long list after the scan had succeeded (#345).
86
87
- The TUI's finished screen wraps its counters between counters to the terminal width and gives the extra lines to the layout, so with every counter set it still fits an 80×24 terminal instead of the terminal wrapping the line and pushing the screen one row down. ctrl+c during the permutation pass after a `-no-abort` reliability warning shows an abort, not a failure (#343).
88
+
- Standard input can be named by only one input flag: `-w -`, `-dL -`, `-r -`, `-exclude-file -` and `-takeover-providers -` are all counted, and a second one is a usage error naming them, before anything is read. Only `-w` with `-dL` used to be refused; with the others the first reader drained standard input and a later one failed on an empty list, with an error about that list instead of the shared input. One `-o` file named twice in different spellings (a relative and an absolute path, `x` and `sub/../x`, another case on Windows and macOS), or an `-inconclusive`, `-stats` or `-sarif` file that is also an `-o` file or another of them, is a usage error too, where only identical spellings were refused and the last file written silently replaced the others. A `subenum mcp``scan` call that cannot start (an unsupported type, an invalid `exclude` pattern, no usable words) is reported `not_run` as before but no longer spends one of the session's `-max-calls` (#378).
87
89
- A `-diff` baseline that is also an `-o` file is recognised however the two paths are spelled (`x` and `./x`, a relative and an absolute path, another case on Windows), so a stopped run leaves it unchanged for the resumed run, as it already did for identical spellings (#342).
88
90
- A `CNAME` lookup of a name with an empty label or one over 63 bytes is reported as not found without a query, as a name over 255 bytes already was, instead of dialling, counting a query and reporting a failure that the reliability guard counts (#344).
89
91
- Under `-no-abort`, the reliability guard's warning is printed as `Warning: ...` (level `warn` with `-log-format json`) instead of `Error: warning: ...`, and a target that finished no longer carries it as its `error` in the `-stats` report next to `"status": "ok"`. The TUI shows it as a warning too (#308).
Copy file name to clipboardExpand all lines: docs/mcp.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
@@ -96,7 +96,7 @@ subenum mcp -allow example.com,example.org # adds scan, for these domains
96
96
|`-max-duration`| 2m | Longest one call may scan |
97
97
|`-timeout`| 1000 | Live-scan lookup timeout in milliseconds |
98
98
|`-sources`| none | Passive sources (`ct`, `wayback`) a `scan` call may ask for |
99
-
|`-max-calls`| 100 | Most `scan` calls one session may make; with `-max-queries` it caps the session's live lookups |
99
+
|`-max-calls`| 100 | Most `scan` calls one session may make; with `-max-queries` it caps the session's live lookups. A call refused for its arguments (`not_run` before any query) does not count|
100
100
101
101
Passive sources are off unless you enable them, because they send the domain
102
102
to third parties (crt.sh, the Wayback Machine). With `-sources ct,wayback`,
Either input can come from standard input with `-` (but not both):
105
+
Either input can come from standard input with `-`, but only one flag can read it (this holds for `-r`, `-exclude-file` and `-takeover-providers` too):
0 commit comments