Skip to content
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

.io domain not working #9

Open
heywoodlh opened this issue Jun 16, 2024 · 4 comments
Open

.io domain not working #9

heywoodlh opened this issue Jun 16, 2024 · 4 comments

Comments

@heywoodlh
Copy link

On current commit, I can't run the following:

❯ dnsmap heywoodlh.io
dnsmap 0.36 - DNS Network Mapper

[+] error: entered domain is not valid!

Seems related to #2

@pagvac
Copy link
Collaborator

pagvac commented Jun 18, 2024

@heywoodlh thanks for your report. That's because heywoodlh.io supports wildcards, which means that fictitious subdomains such as 988621429891124.heywoodlh.io will successfully resolve which currently dnsmap can't cope with. This definitely needs to be fixed, as there's definitely logic that could be implemented to cater for this. E.g.:

  1. generate random subdomain and attempt to resolve it
  2. if subdomain resolves then:
    • note down the IP address(es) the random subdomain resolves to
  3. do steps 1 and 2 again. If the IP(s) are the same as in the initial step 2, then:
    • note it/them down as false positives
    • proceed brute-forcing the whole subdomain list and only print subdomains that successfully resolve to IPs OTHER THAN those noted as false positives.

Alternatively, we could update dnsmap to simply allow brute-forcing wildcard-enabled domains without the above logic, and inform the user that using -i <ips-to-ignore> is recommended to avoid false positives. IIRC this used to be the default behavior, and was the very purpose of this flag, but I guess there was a regression somewhere along the way.

@heywoodlh
Copy link
Author

That makes perfect sense, thanks for the informative response! 😄 I'm happy to leave this open as a placeholder until it is resolved, if desired.

@pagvac
Copy link
Collaborator

pagvac commented Jun 18, 2024

Yes please, do leave it open. Thanks so much!

@pagvac
Copy link
Collaborator

pagvac commented Jun 19, 2024

@heywoodlh I've ported dnsmap to python. Brute-forcing domains with a wildcard record is now supported:
https://github.com/pagvac/dnsmap/

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

No branches or pull requests

2 participants