41 points · by dedalus · 8y ago · 33 comments
sublist3r https://github.com/aboul3la/Sublist3r
amass https://github.com/caffix/amass
subfinder https://github.com/subfinder/subfinder
Certificate transparency tools like CTFR (https://github.com/UnaPibaGeek/ctfr) work only if certs are registered.
You could go old school and use a tool like Sublist3r (https://github.com/aboul3la/Sublist3r) or Punter (https://github.com/nethunteros/punter), but ymmv as API endpoints are savvy to these tools and actively work to snub them out.
AXFR queries can be useful if the DNS server allows for it (my experience: 0-15).
Best of luck.
https://security.stackexchange.com/questions/94503/does-dnss...
https://nmap.org/nsedoc/scripts/dns-nsec3-enum.html
There are tools for online brute force, but that's not very polite :)
These days many domains are configured to refuse AXFR queries though. Then there's a misguided but common phenomenon called split-horizon DNS is also common, where you serve different records as answers to the same query based on what the query originator's address is.
> "I was scanning Valve's network to check for accessible web servers where I thought information about the game might have been held. Valve's network was reasonably secure from the outside, but the weakness was that their name server allowed anonymous AXFRs, which gave me quite a bit of information."
AXFR stands for Asynchronous Full Zone Transfer, a tool used to synchronise backup DNS servers with the same data as the primary server. But it's also a protocol used by hackers to sneak a peek at a website's data. By transferring this data, Gembe was able to discover the names of all the subdomains of ValveSoftware.com.
"In the port scan logs, I found an interesting server which was in Valve's network range from another corporation named Tangis that specialised in wearable computing devices," he says.
"This server had a publically writable web root where I could upload ASP scripts and execute them via the web server. Valve didn't firewall this server from its internal network."
https://www.eurogamer.net/articles/2011-02-21-the-boy-who-st...
Re the Valve case: this could have been also found with a simple ip range port scan, or a bunch of other ways. In the end it was just a server in the network with no access control configured and they happened to spot it in the DNS records first.
"In the port scan logs, I found an interesting server which was in Valve's network range from another corporation named Tangis that specialised in wearable computing devices," he says."
Also, in the modern world, you can see the web servers in a domain in the public cert transparency logs.
Do you consider the whole functionality of views to be misguided, or just predicating the selection of view solely on source address?
I'm not sure if there's a way to handle multi-homed hosts in a more simple/elegant fashion than with views.
Merely for serving distinct "internal" and "external" zones from the same server, it seems like a convenience fraught with pitfalls.
Sure, but that statement is only true in the past tense and only for a sufficiently-past definition of "everything". One could make a similar complaint about the breakdown of classful routing and subnets, but the Internet has morphed beyond its original design, in response to the realities of how it's been used [1].
Regardless, it seems your objection is to the non-global-uniqueness of private addressing, which existed well before split-dns.
Is there any separate objection you have to split-dns?
[1] The wisdom of each particular decision is debatable, but I, personally, find little interest in exploring alternate-history/what-if scenarios, technical or otherwise.
citation needed.
It also means that I'm open to being wrong in my disagreement.
So, in short, I don't state disagreement in these cases because the strength of my opinion is too weak to merit it.
https://lists.opendnssec.org/pipermail/opendnssec-user/2012-...
Now don't do it by hand people have already built tools. I recommend sublist3r https://github.com/aboul3la/Sublist3r, however, grab other subdomain bruteforcer wordlists and append them all together.
Go to https://opendata.rapid7.com/, download the reverse DNS and Forward DNS and grep for your domain. I.E grep "*.mydomain.com" These are amazing.
I will make a note, sometimes if you are looking for servers related to a company specifically people miss ones that aren't in a company's zone file. You need to use a service like Shodan or Censys which regularly scan the internet and index these. It can be a pain to parse through these results but if you are strapped for ideas on getting a foodhold try this. I have found some juicy servers with this in mind.
If you are on a pentest it is completely ok to ask your client for permission to view their zone file/route53 as well. This will save you a lot of time up front.
https://medium.com/@jonathanbouman/how-i-hacked-apple-com-un...
Used a tool called Aquatone:
https://github.com/michenriksen/aquatone/
I have not used Aquatone; I just remembered this from a post on HN pretty recently.
But otherwise just use nslookup/dig/host
- sublist3r - amass - subfinder
They're all on Github.