ARCHITECTURE.md names missing identifiers and describes replaced behavior
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 85/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu với docs/ARCHITECTURE.md và đối chiếu từng dòng được trích dẫn với đoạn mã mà nó đề cập: main_wordlist.go (prepareWordlist), main.go (validateArgs, khoảng dòng 211 và 283-301), internal/dns/resolver.go, internal/dns/cname.go, internal/output/writer.go (writeJSONElement), internal/validate/validate.go, internal/scan/runner.go, main_ct.go và main_config.go. Sửa các định danh đã lỗi thời, yêu cầu về -w, khẳng định về việc đệm JSON, các dạng máy chủ DNS, hành vi của EventDone và mục -dry-run. Hoàn thành khi mọi mục trong danh sách kiểm tra của issue đã được sửa và danh sách tệp có cname.go.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Ten statements in docs/ARCHITECTURE.md contradict the code: two function names that no longer exist, -w described as required, JSON output described as buffered, and a scan described as able to end without EventDone.
Where
docs/ARCHITECTURE.md:66docs/ARCHITECTURE.md:124docs/ARCHITECTURE.md:158docs/ARCHITECTURE.md:194docs/ARCHITECTURE.md:197docs/ARCHITECTURE.md:250docs/ARCHITECTURE.md:253docs/ARCHITECTURE.md:268docs/ARCHITECTURE.md:331docs/ARCHITECTURE.md:343main_wordlist.go:56main.go:211main.go:283-301internal/dns/resolver.go:284-290internal/dns/resolver.go:329-332internal/dns/cname.go:49-62internal/output/writer.go:255internal/validate/validate.go:47-67internal/scan/runner.go:590-596main_ct.go:28main_config.go:39
Details
Each item below contradicts the code at d0c56f0:
- :66
main_wordlist.go - readWordlist. NoreadWordlistexists; the file definesprepareWordlist(main_wordlist.go:56) and thewordlistPathsflag value. - :124 "
validateFlags, which checks that-wand a target are present", and :250 "When-wor a target ... is missing ... exits with status 2".-wis optional (main.go:211, "omitted: the bundled top-5000 list");validateArgschecks only the domain or-dL(main.go:283-301). - :158 "one lookup per requested record type (... CNAME via
LookupCNAME...)". CNAME goes through the package's ownlookupCNAME, one query (cname.go:49-62; resolver.go:286 "not Go's LookupCNAME, which also sends A and AAAA (#249)"), and the types are looked up at the same time (resolver.go:329-332, #250). Line 160 of the same document already says the opposite about CNAME. - :194 "In
jsonformat results are buffered and written as a single array byFinish" and :197 "Finish- writes the buffered JSON array". The array is streamed element by element (writeJSONElement, writer.go:255, #181; CHANGELOG.md:47). - :253 "The DNS server must be a valid
ip:portwith an IP host".tls://host[:port]andhttps://host/pathare accepted, and their host may be a name (validate.go:47-67). Line 125 of the same document says so. - :268 "a failed preflight or an inconclusive wildcard check ... emits
EventErrorand ends the scan withoutEventDone". Every scan ends with exactly oneEventDone, withStoppedset when it ended before the candidates (runner.go:590-596, #99). - :331 "
withCTEntriesappends those not already in the wordlist". No such function; the passive names are gathered bypassiveNames(main_ct.go:28) and merged bypassive.Merge. - :343 lists the flags never taken from defaults as
-tui,-version,-print-config,-resume,-h;dry-runis innoDefaultFlagstoo (main_config.go:39), as README.md:417 and docs/cli.md:44 say. - The file list (:75-84) has no entry for
internal/dns/cname.go.
Impact
A contributor searching for readWordlist or withCTEntries finds nothing, and one who writes a scan.Run consumer from section 4.3 will treat a missing EventDone as a possible outcome, or budget five queries for -type A,AAAA,CNAME instead of three.
Suggested fix
Correct the nine items in place: rename the two functions, drop "-w and" from 2.1 and 4.1, rewrite the Lookups bullet (own lookupCNAME, concurrent types), say JSON is streamed and Finish closes the array, list the three resolver forms in 4.1, say EventDone follows with Stopped set in 4.3, add -dry-run to 5.8 and cname.go to the file list.
Acceptance criteria
- Each checklist item under Details is corrected
Getting started
- Relevant files:
docs/ARCHITECTURE.md,main_wordlist.go,main.go,internal/dns/resolver.go - How to run tests:
make test(orgo test ./...). Tests must stay hermetic: use-simulate,-simulate-zoneor the local DNS test server, never a live domain. - Related docs:
docs/DEVELOPER_GUIDE.md,docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at d0c56f0. Severity: low. Effort: S. audit-key: documentation|docs/ARCHITECTURE.md|stale-identifiers
- Ngôn ngữ chính
- Go
- Star
- 1
- Fork
- 1
- Merge trung bình
- 6 giờ 42 phút
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TMHSDigital/subenum
-
good first issue severity: low tech-debt
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 75/100
TMHSDigital/subenum#329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: release dependencies good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
TMHSDigital/subenum#324 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
TMHSDigital/subenum#323 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: output bug good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
TMHSDigital/subenum#319 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
TMHSDigital/subenum#135 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TMHSDigital/subenum
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
GillMacedo/godebugdiff#13 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
GillMacedo/racesift#14 ·
-
IsTextFile reads the whole file into memory (OOM on large files in the file watcher)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
gtsteffaniak/filebrowser#3395 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
effort:s impact:low raised-by:worker risk:low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
medici-finance/assay#6496 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/bug require/reproduce require/severity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày