TUI labels Follow Records results as wordlist names and omits records_found
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從 internal/tui/model.go 開始,特別查看 updateScan、record 和 summary,接著比較 internal/cli/session.go 和 internal/cli/summary.go 中的 CLI 處理。檢查 internal/tui/form.go 和現有測試 internal/tui/passes_test.go;執行 go test ./internal/tui/。完成條件是:後續結果在兩個階段都標示為記錄,報告包含 records_found,且有一個 TUI 測試涵蓋這兩點。
由索引模型根據 Issue 內容生成。
描述
Summary
With Follow Records on, the TUI does not know which results came from a found name's records. The engine marks them (Event.Followed), and the command line labels them sources: ["records"] and counts them in records_found; the TUI drops the mark, so they are labelled as wordlist names (or as permutation hits) and the report has no records_found.
Where
internal/tui/model.go(updateScan:m.record(ev.Result)passes the result withoutev.Followed;record;summarynever setsRecordsFound)internal/tui/form.go(formValues.attributeddoes not count Follow Records, so with only that toggle on the results file has no sources at all)- For comparison:
internal/cli/session.go(emitFrom:case ev.Followed: res.Sources = candidates.FromRecords) andinternal/cli/summary.go(t.RecordsFound = res.foundBy[candidates.Records])
Details
// internal/tui/model.go
case ev.Kind == scan.EventResult:
m.record(ev.Result)
record then picks the sources from the stage and the candidate set only. A followed name is not in the candidate set, and SourcesOf answers ["wordlist"] for any name it does not know.
Impact
TUI users who turn on Follow Records with Sources, Permute, Zone Transfer, NSEC Walk, Service Names or PTR Lookups get results files that say a followed name (for example lb-7.int.example.com behind app CNAME lb-7.int) came from the wordlist. With Follow Records alone, the file names no sources. The Stats File and the JSONL summary lack records_found, which the command line writes for the same scan.
Steps to reproduce
- Serve a zone where
app.example.comhasCNAME lb-7.int.example.comandlb-7.int.example.comhas an A record. - In the TUI: wordlist
app, Record TypesA,CNAME, Follow Records and Permute on, an Output file injsonl. - The line for
lb-7.int.example.comhas"sources":["wordlist"]; the summary line has norecords_found. The command line with-follow-records -permutewrites"sources":["records"]and"records_found":1.
Suggested fix
Pass the event (or its Followed flag) to record, label a followed result candidates.FromRecords before the stage and candidate-set cases, count Follow Records in attributed, and set t.RecordsFound = m.foundBy[candidates.Records] in summary.
Acceptance criteria
- A followed name's result in a TUI output file has
sources["records"], in the main pass and in a later pass. - The TUI's report has
records_foundwhen Follow Records found names. - A test in
internal/tuicovers both.
Getting started
- Relevant files:
internal/tui/model.go,internal/tui/form.go,internal/tui/passes_test.go - How to run tests:
go test ./internal/tui/ - Related: #476, #432
Filed by repo-audit/fix-issues at b8afd4d. Severity: low. Effort: S. audit-key: bug|internal/tui/model.go|record
- 主要語言
- Go
- 星號
- 1
- 分支
- 1
- 平均合併
- 10 小時
- 30 天內合併 PR
- 26
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TMHSDigital/subenum 的其他 Issue
-
-diff's removed-name budget ignores the names the -ptr pass tested可能已有人在做 @nova-loop 今天認領。 未關閉area: cli bug good first issue severity: low
難度 2/5 1-3 小時 新手友好度 84/100
TMHSDigital/subenum#495 ·
維護者通常 1 天內回覆
-
security
難度 1/5 1 小時以內 新手友好度 72/100
TMHSDigital/subenum#453 ·
維護者通常 1 天內回覆
-
enhancement help wanted severity: low
難度 4/5 3-5 天 新手友好度 57/100
TMHSDigital/subenum#489 · 1 則留言 ·
維護者通常 1 天內回覆
-
area: dns enhancement severity: medium
難度 5/5 一週以上 新手友好度 35/100
TMHSDigital/subenum#477 · 1 則留言 ·
維護者通常 1 天內回覆
-
security
難度 2/5 1-3 小時 新手友好度 55/100
TMHSDigital/subenum#457 ·
維護者通常 1 天內回覆
查看 TMHSDigital/subenum 的全部 Issue
相似的 Issue
-
good first issue tools
難度 2/5 1-3 小時 新手友好度 90/100
Edwin-metcalf/MetCode#76 ·
維護者通常 1 天內回覆
-
bug effort:s impact:med raised-by:worker risk:low to:worker
難度 2/5 1-3 小時 新手友好度 78/100
medici-finance/assay#8120 · 1 則留言 ·
維護者通常 1 天內回覆
-
factory:subtask
難度 1/5 1 小時以內 新手友好度 72/100
維護者通常 1 天內回覆
-
reportedBy/community
難度 2/5 1-3 小時 新手友好度 78/100
openchoreo/openchoreo#5751 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
agent-substrate/substrate#4308 ·
維護者通常 2 天內回覆