DNSRecon

circle-check

This script provides the ability to perform the following:

  • Check all NS Records for Zone Transfers.

  • Enumerate General DNS Records for a given Domain (MX, SOA, NS, A, AAAA, SPF and TXT).

  • Perform common SRV Record Enumeration.

  • Top Level Domain (TLD) Expansion.

  • Check for Wildcard Resolution.

  • Brute Force subdomain and host A and AAAA records given a domain and a wordlist.

  • Perform a PTR Record lookup for a given IP Range or CIDR.

  • Check a DNS Server Cached records for A, AAAA and CNAME Records provided a list of host records in a text file to check.

Example 1:

Port 53 is open, so we need to perform recon on DNS. Let's use dnsrecon:

$ dnsrecon -r 127.0.0.0/24 -n 192.168.240.140 -d nodictionary

-r : local range (because that's where the box is located) -n : Name Server, the target box because it is using DNS -d : dictionary (Even though one is not being used, this field still needs to be filled out with anything)

We see the PTR record for a domain blackpearl.tcm at 127.0.0.1. This needs to be added to our DNS and /etc/hosts

Now we can try navigating to the domain in the web browser:

Enumerate Subdomains:

DNS Zone Transfer

Base Domain Enumeration

Zonewalk

Last updated