Using Certificate Transparency Logs for DNS Enumeration

A tool for enumerating DNS records using cert transparency and dictionary files
2 min read

During the pentesting class I recently took as I’m working towards my master’s degree, we were tasked with running DNS enumeration on website domains and reporting the results. I used a few of the popular brute-force tools which took a little while to run. Since I work primarily on websites for work, I’ve used certificate transparency to audit certificates being issued for our domains.

Combining both of these, I wrote a small tool which uses the python dns library and attempts to enumerate all dns records for domains in a wordlist and domains pulled directly from certificate transparency logs. I figured that domains from CT logs would have a much higher rate of being accurate and yield results much quicker.

It works in a fairly standard manner. You give it a domain (and optionally a wordlist), and it enumerates all record types that it can. For example, running it altoromutual (a site vulnerable that’s by design for use with testing security tools). This tool doesn’t connect to the target site in any way.

python3 -d --discover

 ______  __   _      ______ _______ _______  _____  __   _
 |     \ | \  | ___ |_____/ |______ |       |     | | \  |
 |_____/ |  \_|     |    \_ |______ |_____  |_____| |  \_|

initial target:
loaded 2 from certificate transparency
got 1 domains to explore A: NS: NS: NS: NS: NS: NS: NS: NS: SOA: 1368446078 43200 7200 604800 86400 TXT: "v=spf1 mx/24 -all"

Change Log

  • 10/25/2022 - Initial Revision

Found a typo or technical problem? file an issue!