feat: add --auto-wildcard flag for automatic wildcard DNS detection#963
feat: add --auto-wildcard flag for automatic wildcard DNS detection#963zhaog100 wants to merge 1 commit intoprojectdiscovery:mainfrom
Conversation
Implements automatic wildcard DNS detection across multiple domains without requiring manual -wd flag specification per domain. Algorithm: - Extracts root domains from all resolved hosts - Probes 3 random subdomains per root domain - If all probes resolve to common IPs, marks domain as wildcard - Filters out hosts whose IPs match detected wildcard IPs Usage: echo -e "sub1.example.com\nsub2.test.com" | dnsx --auto-wildcard Closes projectdiscovery#924
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can make CodeRabbit's review stricter and more nitpicky using the `assertive` profile, if that's what you prefer.Change the |
|
Thank you for the work! This PR has a clean scope, but the |
Summary
Adds
--auto-wildcardflag for automatic wildcard DNS detection across multiple domains, addressing #924.Changes
internal/runner/autowildcard.go— Auto-wildcard detection engineinternal/runner/options.go— AddedAutoWildcardoption and--auto-wildcardflaginternal/runner/runner.go— Integration with existing resolution pipelineHow it works
Usage
Key Design Decisions
-wdbehavior unchanged;--auto-wildcardis opt-in-wdpath)Closes #924