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

.se .nu .ch .li .sk are also transferable #1

Open
maaaaz opened this issue May 7, 2023 · 10 comments
Open

.se .nu .ch .li .sk are also transferable #1

maaaaz opened this issue May 7, 2023 · 10 comments

Comments

@maaaaz
Copy link

maaaaz commented May 7, 2023

Hello there,

Thank you for this interesting project.

I have to mention that the titled zones are also transferable:

Cheers

@maaaaz
Copy link
Author

maaaaz commented May 13, 2023

@maaaaz maaaaz changed the title .se .nu .ch .li are also transferable .se .nu .ch .li .sk are also transferable May 13, 2023
@flotwig
Copy link
Owner

flotwig commented May 14, 2023

Thanks for taking a look!

Currently this tool doesn't have any knowledge of the specific AXFR dance you have to do with .se and .nu. Right now TLDR-2 just sends the same AXFR to every TLD. I don't plan to work on this soon but I'd accept a PR.

This project's scope is really only around doing AXFRs, so .ch and .sk and other TLDs that offer downloads of the zone via HTTP or other mechanism don't belong here.

Eventually, I want to aggregate TLDR-2's lists along with other lists in a unified fashion, since there are so many ways that zones can be enumerated. Work in progress 😃

You should check out another project I've been working on, it has .se and .nu even: https://github.com/flotwig/zone-walks Sadly, those two specific zones are not currently auto-updated because of some issue with the zone walker I wrote causing it to take too long on GitHub Actions, along with some other zones: https://github.com/flotwig/zone-walks/blob/main/ignore-tld-list.txt Also a work in progress.

Previous relevant issue on TLDR: mandatoryprogrammer/TLDR#12

@maaaaz
Copy link
Author

maaaaz commented May 15, 2023

Clear, thank you.

By the way, the ch. and .li zonez are AXFRable:

dig -y hmac-sha512:tsig-zonedata-ch-public-21-01:stZwEGApYumtXkh73qMLPqfbIDozWKZLkqRvcjKSpRnsor6A6MxixRL6C2HeSVBQNfMW4wer+qjS0ZSfiWiJ3Q== @zonedata.switch.ch +noall +answer +noidnout +onesoa AXFR ch.

dig -y hmac-sha512:tsig-zonedata-li-public-21-01:t8GgeCn+fhPaj+cRy1epox2Vj4hZ45ax6v3rQCkkfIQNg5fsxuU23QM5mzz+BxJ4kgF/jiQyBDBvL+XWPE6oCQ== @zonedata.switch.ch +noall +answer +noidnout +onesoa AXFR li.

@maaaaz
Copy link
Author

maaaaz commented May 15, 2023

Also, why don't you use "ldns-walk" for the zones you have troubles to grab ?

I tried this on my side and it took few seconds, far from the 6-hour maximum Github Action duration:

$ time ldns-walk game > /tmp/test

real    0m38.872s
user    0m0.266s
sys     0m0.133s

$ tail -f /tmp/test
zepto.game. NS RRSIG NSEC
zimbabet.game. NS RRSIG NSEC
zitro.game. NS RRSIG NSEC
zitrogames.game. NS RRSIG NSEC
zlotxo.game. NS RRSIG NSEC
zoa.game. NS RRSIG NSEC
zone.game. NS RRSIG NSEC
zypher.game. NS RRSIG NSEC

$ wc /tmp/test
  4065  16346 124262 /tmp/test

@flotwig
Copy link
Owner

flotwig commented Jun 3, 2023

Also, why don't you use "ldns-walk" for the zones you have troubles to grab ?

@maaaaz It's a good idea. I didn't do this because I want zone-walker to eventually work with all walkable zones, so I intend to fix the bugs with the currently ignored TLDs in zone-walker. I'd accept a PR that uses ldns-walk as a fallback in the interim, but the goal is to fix the bugs in zone-walker ultimately.

@maaaaz
Copy link
Author

maaaaz commented Jun 6, 2023

Well, I am starting to encounter your issues.

I try to zone-walk from Github Action (ubuntu) and :

For ldns-walk, I will try to use the latest version on Github Action to see if it is the root cause.

Cheers!

@maaaaz
Copy link
Author

maaaaz commented Jun 20, 2023

Hello @flotwig,

A quick update :

  • I tried several methods to make NSEC enumeration work from Github Actions, like using an updated-and-myself-compiled version of ldns-walk etc. They all failed for unknown reasons, there should be a rate limitation somewhere but I don't know where, and don't know how to bypass. And when ldns-walk deigns to work, its results are not consistent (cf. issue link above)

  • So I ended up doing the enumeration with n3map somewhere else from Github Actions, and just collecting results with Github Actions. It's all there https://github.com/maaaaz/dnsdumps

Definitely, an harder and deeper problem than I thought. I do then fully understand the technical issues you also face :)

Cheers!

@maaaaz
Copy link
Author

maaaaz commented Aug 3, 2023

I just discovered this: https://github.com/trickest/zip

@flotwig
Copy link
Owner

flotwig commented Aug 5, 2023

I just discovered this: trickest/zip

@maaaaz Thank you for sharing another resource. I also recommend that you check out the ICANN Centralized Zone Data Service (CZDS) if you haven't yet. As long as your use case fits ICANN's ToS, you can access over 1,100 zone files provided by the gTLD operators, making it trivial to enumerate domains for OSINT. You can even get .zip zonefiles from the CZDS; although, according to trickest/zip#2, it's not an exact match with trickest/zip's collected data.

AFAIK, existing gTLDs like .com, .net, .org, and .gov participate in CZDS voluntarily. However, participation in CZDS is mandatory for new gTLDs:

New gTLD Registries are required to start providing their zone data upon delegation
- Centralized Zone Data Service Frequently Asked Questions

@maaaaz
Copy link
Author

maaaaz commented Aug 16, 2023

Thank you for this information @flotwig !

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