flotwig / TLDR-2

TLDR 2 (TLD Records 2) is a continually updated DNS archive of zone transfer attempts against all existing TLD nameservers as well as the root servers.
51 stars 7 forks source link

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

Open maaaaz opened 1 year ago

maaaaz commented 1 year ago

Hello there,

Thank you for this interesting project.

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

Cheers

maaaaz commented 1 year ago

And also .sk:

flotwig commented 1 year ago

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 :smiley:

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: https://github.com/mandatoryprogrammer/TLDR/issues/12

maaaaz commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Hello @flotwig,

A quick update :

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

Cheers!

maaaaz commented 1 year ago

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

flotwig commented 1 year ago

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 commented 1 year ago

Thank you for this information @flotwig !