feat(tasks): add gobuster integration with multi-mode support #859
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds gobuster task supporting multiple operational modes (dns, dir, vhost, fuzz, s3, gcs, tftp) with dynamic command construction based on mode selection.
Implementation
Task module (
secator/tasks/gobuster.py):before_inithook to construct mode-specific commands (gobuster dns,gobuster dir, etc.)Subdomainfor DNS mode,Urlfor DIR/VHOST modesTest infrastructure:
Documentation: Added to README task list with dual categorization (url/fuzz, dns/recon)
Usage
Technical Notes
Mode is marked as internal option to prevent duplicate command construction (
gobuster dns --mode dns). Thebefore_inithook ensures mode-specific configuration occurs before command assembly, following the pattern used indnsxfor dynamic input flag selection.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
4b5f274d-f9a0-44a6-9698-dd90b56267f6.wikipedia.org/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --quiet --no-progress(dns block)65dc8b05-7558-47c8-b968-e531ecac049f.wikipedia.org/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --no-progress -pack /home/REDACTED/go/pkg/mod/github.com/!o!j/gobuster/v3@v3.8.2/cli/gcs/gcs.go 0.1-go1.25.5.lin-I(dns block)ftp.wikipedia.org/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --quiet --no-progress(dns block)/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --no-progress -pack /home/REDACTED/go/pkg/mod/github.com/!o!j/gobuster/v3@v3.8.2/cli/gcs/gcs.go 0.1-go1.25.5.lin-I(dns block)httpbin.org/home/REDACTED/go/bin/gobuster gobuster dir --url REDACTED -w /tmp/test_wordlist.txt -t 5 --no-progress -q(dns block)mail.wikipedia.org/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --quiet --no-progress(dns block)/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --no-progress -pack /home/REDACTED/go/pkg/mod/github.com/!o!j/gobuster/v3@v3.8.2/cli/gcs/gcs.go 0.1-go1.25.5.lin-I(dns block)publicsuffix.org/usr/bin/python python(dns block)test.wikipedia.org/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --quiet --no-progress(dns block)/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --no-progress -pack /home/REDACTED/go/pkg/mod/github.com/!o!j/gobuster/v3@v3.8.2/cli/gcs/gcs.go 0.1-go1.25.5.lin-I(dns block)wikipedia.org/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --no-progress -pack /home/REDACTED/go/pkg/mod/github.com/!o!j/gobuster/v3@v3.8.2/cli/gcs/gcs.go 0.1-go1.25.5.lin-I(dns block)www.wikipedia.org/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --quiet --no-progress(dns block)/home/REDACTED/go/bin/gobuster gobuster dns --domain wikipedia.org -w /tmp/test_wordlist.txt -t 5 --no-progress -pack /home/REDACTED/go/pkg/mod/github.com/!o!j/gobuster/v3@v3.8.2/cli/gcs/gcs.go 0.1-go1.25.5.lin-I(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.