Skip to content

Label Follow Records results as records in the TUI and count records_found - #497

Open
Beehtrix wants to merge 1 commit into
TMHSDigital:mainfrom
Beehtrix:fix/tui-follow-records-sources-494
Open

Beehtrix wants to merge 1 commit into
TMHSDigital:mainfrom
Beehtrix:fix/tui-follow-records-sources-494

Conversation

@Beehtrix

@Beehtrix Beehtrix commented Dec 4, 2026

Copy link
Copy Markdown

Description

The TUI dropped Event.Followed, so a name found through a found name's records was saved with sources: ["wordlist"] (or the permutation or PTR pass's source), and the report had no records_found. Now record takes the followed flag and labels such a result records before the stage and candidate-set cases (as emitFrom in internal/cli/session.go does), formValues.attributed counts Follow Records so the results file has sources with that toggle alone, and summary sets RecordsFound from foundBy[candidates.Records].

Before (wordlist app, Record Types A,CNAME, Follow Records and Permute on, jsonl output):

{"subdomain":"lb-7.int.example.com",...,"sources":["wordlist"]}
summary: no records_found

After:

{"subdomain":"lb-7.int.example.com",...,"sources":["records"]}
summary: "records_found":1

Related Issue

Fixes #494

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING document
  • My code follows the code style of this project
  • I have added/updated appropriate comments to the code
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly (if applicable)

Ethical Considerations

  • This change maintains or improves the security controls in the tool
  • This change follows the educational/legitimate security testing focus of the project
  • I have considered potential misuse cases and taken appropriate steps to prevent them

Additional Information

New tests in internal/tui/follow_test.go fail without the fix and pass with it: an end-to-end TUI run (Follow Records alone, and with Permute) and a check that a followed result in the permutation or PTR stage keeps source records. go test ./... passes. Not run: golangci-lint, CHANGELOG update.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T01:31:28.636410Z 8d0e09d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI labels Follow Records results as wordlist names and omits records_found

1 participant