README - dnsenum2.pl VERSION: 1.3.1
multithreaded perl script to enumerate DNS information of a domain and to discover non-contiguous ip blocks.
-
Get the host's addresse (A record).
-
Get the nameservers (threaded).
-
Get the MX record (threaded).
-
Perform axfr queries on nameservers and get BIND VERSION (threaded).
-
Get extra names and subdomains via google scraping (google query = "-www site:domain").
-
Brute force subdomains from file, can also perform recursion on subdomain that have NS records (all threaded).
-
Calculate C class domain network ranges and perform whois queries on them (threaded).
-
Perform reverse lookups on netranges ( C class or/and whois netranges) (threaded).
-
Write to domain_ips.txt file ip-blocks.
-
Modules that are included in perl 5.28.0:
- Getopt::Long
- IO::File
- Thread::Queue
-
Other Necessary modules:
- Must have:
- Net::IP
- Net::DNS
- Net::Netmask
- String::Random
- Optional:
- Net::Whois::IP
- HTML::Parser
- WWW::Mechanize
- XML::Writer
- Must have:
-
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
- debian:
-
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)
-
OPTIONS:perldoc dnsenum.pl
Changelog from version 1.3.0
- Makefile addition
- Dynamic DNS.txt reading
- Additional DNS.txt entries
- Fixed deprecated
allinurl
- Changed
out
tooutput
as mentioned in the docs
Special thanks to all Original Perl developers.