subbrute icon indicating copy to clipboard operation
subbrute copied to clipboard

Get subdomains from SSL cert

Open jomo opened this issue 10 years ago • 1 comments

I'm unsure if this would be in the scope of the tool, but using a website's SSL cert(s) can be a good way to find subdomains. For example, the SSL certificate for the German parliament (https://bundestag.de) has this list of domains in its Subject Alternative Name:

adler.bundestag.de
adleradmin.bundestag.de
awstats.bundestag.de
bundestag.de
cms.bundestag.de
cms.dev.bundestag.de
cms.prod.bundestag.de
cms.schulung.bundestag.de
cms.staging.bundestag.de
cmslogin.bundestag.de
das-parlament.de
datenaustausch.bundestag.de
editor.bundestag.de
editor.dev.bundestag.de
editor.prod.bundestag.de
editor.schulung.bundestag.de
editor.staging.bundestag.de
forum.bundestag.de
kontakt.bundestag.de
kontakt.dev.bundestag.de
kontakt.prod.bundestag.de
kontakt.schulung.bundestag.de
kontakt.staging.bundestag.de
newsletteradmin.bundestag.de
newsletteradmin.mitmischen.de
opac.bibliothek.bundestag.de
opac.bundestag.de
sdc.bundestag.de
sdc.mitmischen.de
statistik.bundestag.de
statistik.dev.bundestag.de
statistik.schulung.bundestag.de
statistik.staging.bundestag.de
studio.bundestag.de
studio.dev.bundestag.de
studio.prod.bundestag.de
studio.schulung.bundestag.de
studio.staging.bundestag.de
suche.bundestag.de
suche.dev.bundestag.de
suche.prod.bundestag.de
suche.schulung.bundestag.de
suche.staging.bundestag.de
visite.bundestag.de
werkstatt.bundestag.de
www.bundestag.de
www.das-parlament.de
www.dev.bundestag.de
www.dev.das-parlament.de
www.kuppelkucker.de
www.mitmischen.de
www.parlamentsprofi.de
www.prod.bundestag.de
www.schulung.bundestag.de
www.staging.bundestag.de
www.staging.das-parlament.de

You can see the list in your browser or via CLI:

openssl s_client -showcerts -connect bundestag.de:443 < /dev/null | openssl x509 -text | grep -A 1 "Subject Alternative Name"

jomo avatar Oct 29 '15 22:10 jomo

This is a great idea, and something I'd like to add in the next major version. Right now the tool is pure DNS, but i'd like to tap into protocols for discovery.

TheRook avatar Oct 29 '15 22:10 TheRook