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
-tui silently ignores -axfr, -stats, -exclude-file and -sarif #418
-tui ignores -axfr, -stats, -exclude-file, -sarif and other flags that have no form field. The only sign is a warning printed to stderr just before the full-screen UI covers it.
Where
internal/tui/form.go:84-135 (formFields)
internal/cli/session.go:236-237, 270-272 (Warning: -tui has no form field for %s; ignored)
Details
The form has no field for -axfr, -stats, -exclude-file, -takeover-providers, -inconclusive, -show-records or -sarif. The TUI also has no AXFR, stats-file or resume handling. This is a follow-up to the closed #274, which added the other passes.
Impact
TUI users cannot try a zone transfer, save a run-quality report for later (for explain_stats or Action-style auditing), or load a scope file. Running subenum -tui -axfr -stats r.json example.com prints a warning that disappears behind the UI, then runs without either flag.
Suggested fix
Add an AXFR toggle and a Stats File field. The TUI already builds the same report through the shared report code (scan_view.go:513-517).
Accept -exclude-file by reading it into the Exclude field at startup.
Keep the warning for the remaining flags, but show it in the form's status line instead of only on stderr.
Acceptance criteria
The TUI can run a zone transfer and write a -stats file
-exclude-file pre-fills the Exclude field
Warnings about ignored flags are shown inside the UI
The TUI form has three new fields: Zone Transfer (-axfr), NSEC Walk (-nsec-walk) and Stats File (-stats). They are filled from flags, SUBENUM_* and the config file, and saved in last.json. The zone lookup uses the shared internal/axfr code and runs while the passive sources are asked, as the CLI's does (Smaller performance costs: cap walk, wordlist copies, serial AXFR, -dL, MCP queue #365). Its names join the candidate set and show axfr or nsec in the results file. The scan screen shows the lookup's findings, warnings and "N names, M new" lines. Neither lookup runs with Simulate on, and the scan screen says so. NSEC Walk uses the same lookup, so adding it was cheap. Like the CLI, it is paced by Rate, capped by Max Names and bounded by Max Duration and Exclude.
When the scan ends, or stops early (the CLI writes -stats in that case too), the run-quality report is written to the Stats File. It comes from the same report code and includes the zone fields (axfr_allowed, axfr_names, axfr_found, nsec_names, nsec_found, nsec_stop, zone_denial, and the zone queries in queries_sent). If the write fails, the error appears on the scan screen and the exit code is 1.
-exclude-file given with -tui is now read into the Exclude field, after the -exclude patterns. If the file cannot be read, a warning says so.
Launch warnings are now shown on the form above the key hints and still printed to stderr. They cover ignored flags (now -sarif, -inconclusive, -show-records, -takeover-providers and similar) and the extra -w and -o notices.
How it was verified
TestZoneTransferWalkAndStatsScan drives the TUI end to end against a local Lab 8 zone that allows transfers and is signed with plain NSEC. It checks the scan-screen lines, the per-result sources and the Stats File's zone fields.
TestZoneFieldsSavedAndIgnoredInSimulation, TestStatsFileWriteFailure and TestLaunchWarningsOnForm cover saving the fields, simulation mode, a failed stats write and warnings on the form. TestTUIOptionsZoneStatsAndExcludeFile covers the CLI side: the new flags fill the fields, -exclude-file fills Exclude, and the warnings reach the form.
gofmt, go vet, golangci-lint v2.15.0, go test -shuffle=on ./..., go test -race ./internal/tui/ and go mod tidy -diff all pass. CI is green.
Not included
-sarif, -inconclusive, -show-records, -takeover-providers and resume handling still have no form field. They now show the warning on the form.
Activity
TMHSDigital commentedon Nov 21, 2026
Fixed in 4942639.
What changed
-axfr), NSEC Walk (-nsec-walk) and Stats File (-stats). They are filled from flags,SUBENUM_*and the config file, and saved inlast.json. The zone lookup uses the sharedinternal/axfrcode and runs while the passive sources are asked, as the CLI's does (Smaller performance costs: cap walk, wordlist copies, serial AXFR, -dL, MCP queue #365). Its names join the candidate set and showaxfrornsecin the results file. The scan screen shows the lookup's findings, warnings and "N names, M new" lines. Neither lookup runs with Simulate on, and the scan screen says so. NSEC Walk uses the same lookup, so adding it was cheap. Like the CLI, it is paced by Rate, capped by Max Names and bounded by Max Duration and Exclude.-statsin that case too), the run-quality report is written to the Stats File. It comes from the samereportcode and includes the zone fields (axfr_allowed,axfr_names,axfr_found,nsec_names,nsec_found,nsec_stop,zone_denial, and the zone queries inqueries_sent). If the write fails, the error appears on the scan screen and the exit code is 1.-exclude-filegiven with-tuiis now read into the Exclude field, after the-excludepatterns. If the file cannot be read, a warning says so.-sarif,-inconclusive,-show-records,-takeover-providersand similar) and the extra-wand-onotices.How it was verified
TestZoneTransferWalkAndStatsScandrives the TUI end to end against a local Lab 8 zone that allows transfers and is signed with plain NSEC. It checks the scan-screen lines, the per-result sources and the Stats File's zone fields.TestZoneFieldsSavedAndIgnoredInSimulation,TestStatsFileWriteFailureandTestLaunchWarningsOnFormcover saving the fields, simulation mode, a failed stats write and warnings on the form.TestTUIOptionsZoneStatsAndExcludeFilecovers the CLI side: the new flags fill the fields,-exclude-filefills Exclude, and the warnings reach the form.go test -shuffle=on ./...,go test -race ./internal/tui/andgo mod tidy -diffall pass. CI is green.Not included
-sarif,-inconclusive,-show-records,-takeover-providersand resume handling still have no form field. They now show the warning on the form.