Skip to content

Fixing copilot issues in gobuster - #666

Open
firefart with Copilot wants to merge 3 commits into
recursionfrom
copilot/fix-latest-copilot-issues
Open

Fixing copilot issues in gobuster#666
firefart with Copilot wants to merge 3 commits into
recursionfrom
copilot/fix-latest-copilot-issues

Conversation

Copilot AI commented Aug 30, 2026

Copy link
Copy Markdown

Pull request created by AI Agent

Co-authored-by: firefart <105281+firefart@users.noreply.github.com>
@firefart
firefart marked this pull request as ready for review August 30, 2026 23:41
Copilot AI lite review requested due to automatic review settings August 30, 2026 23:41
@firefart
firefart changed the base branch from master to recursion August 30, 2026 23:41
@firefart firefart closed this Aug 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The updated success-handling logic invokes discovery callbacks before the discoverOnSuccess guard (then discards results), which is inconsistent with the surrounding control flow and comment intent.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates Gobuster’s user-facing documentation and tweaks the core discovery-on-success flow in libgobuster, alongside a small CLI validation error-message improvement.

Changes:

  • Documented pattern replacement, discover-pattern generation, and wordlist offset usage in the README.
  • Adjusted how success-triggered “discovery” words are computed/handled in the main processing loop.
  • Refined the wordlist-offset validation error message for clarity.
File summaries
File Description
README.md Adds examples for --pattern, --discover-pattern, and --wordlist-offset usage.
libgobuster/libgobuster.go Modifies the success-handling branch to change when discovery callbacks/pattern generation are invoked.
cli/options.go Updates the wordlist-offset negative-value error message wording.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread libgobuster/libgobuster.go Outdated
Comment on lines +283 to +290
// Call the success callback for every successful result so generated
// recursive targets are still processed even when the originating guess
// was created with discoverOnSuccess disabled.
discoverWords := g.plugin.AdditionalSuccessWords(successGuess.word)
patternDiscoverWords := g.processDiscoverPatterns(successGuess.word)
if !successGuess.discoverOnSuccess {
break
}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 4bd5cbf: the discoverOnSuccess guard now precedes both discovery callbacks.

Copilot AI and others added 2 commits August 30, 2026 23:48
Co-authored-by: firefart <105281+firefart@users.noreply.github.com>
Co-authored-by: firefart <105281+firefart@users.noreply.github.com>
Copilot AI requested a review from firefart August 30, 2026 23:50
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.

3 participants