SparrowOchon / dnsenum2

dnsenum is a perl script that enumerates DNS information. Officially mainlined in Kali Linux
32 stars 11 forks source link
dns enumeration networking

DNSENUM2

Rawsec's CyberSecurity Inventory

README - dnsenum2.pl VERSION: 1.3.2

multithreaded perl script to enumerate DNS information of a domain and to discover non-contiguous ip blocks.

OPERATIONS:

  1. Get the host's addresse (A record).

  2. Get the nameservers (threaded).

  3. Get the MX record (threaded).

  4. Perform axfr queries on nameservers and get BIND VERSION (threaded).

  5. Get extra names and subdomains via google scraping (google query = "-www site:domain").

  6. Brute force subdomains from file, can also perform recursion on subdomain that have NS records (all threaded).

  7. Calculate C class domain network ranges and perform whois queries on them (threaded).

  8. Perform reverse lookups on netranges ( C class or/and whois netranges) (threaded).

  9. Write to domain_ips.txt file ip-blocks.

PREREQUISITES:

Note: the make file will install these automatically.

INSTALLATION:

  1. To install a module, simply run (as root):

    • debian:apt-get install cpanminus
    • centos: yum install cpan
    • other:curl -L http://cpanmin.us | perl - App::cpanminus
  2. Run make file

    • make: Create Manpages

    • make install: Install files in the correct folder

    • This will create a direct callable dnsenum file from commandline.

    • dns.txt file will be loaded from /usr/share/dnsenum/dns.txt. (Note the -f switch will take precedence over this file)

ADDITIONAL INFORMATION:

OPTIONS:perldoc dnsenum.pl

CHANGELOG

Changelog from version 1.3.0

Special thanks to all Original Perl developers.

Filip Waeytens
tix tixxDZ