-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wildcard scan #48
Comments
And the same at 508 string |
Hi @drakylar, This isn't actually a bug. The recursive scanning is intentionally run even when a wildcard is present, because a wildcard record doesn't meant that there are no other records for a domain. In fact, most domains that have wildcards will also have other records.
Any records that return the same IP as the wildcard are ignored, and the only ones that are returned at those with different IP addresses. It's not perfect (as it won't pick up VHOSTS), but it's the best we can do at a pure DNS level. |
Hello, yes, it's true. But I have several domains when this utility went into recursion and scanned up to 6th wildcard subdomain level. That was because of bad detection of wildcard ip-addresses. I will check later detection algorythm. |
@drakylar you can set the max recursion depth with |
Think this will help, but I wanted to minimize false-positive results. |
I'm not really clear what false positives you're seeing. So if you scan |
The issue was that if subdomain was wildcard (*.example.org) it returned non-existed domain a.example.org and started to scan wildcard subdomains *.a.example.org. So, I thought that there had been some problems with wildcard subdomains enumeration which leads to a lot of false-positive subdomains. P.S. May be it will be better to add an option to ignore wildcard subdomains bruteforce? |
Ah, I understand where you're coming from. While I don't think it's technically incorrect to recursively scan a domain that we know has wildcards (as there's nothing stopping it also having default entries), this will be quite slow for domains that have a lot of them. I've added a |
Thanks! Will check it later. |
One new problem - sometimes DNS server from NX can stuck with response, so it is needed to add to
|
Two more suggestions
|
Hello, there is a bug inside dnscan.py at line 114:
add_target(domain) # Recursively scan subdomains
This function must be run only when wildcard = get_wildcard(domain) is empty, so it is needed to add a condition
if not wildcard:
, or wildcard domain will be added to recursive subdomain scan.The text was updated successfully, but these errors were encountered: