Never Ending Security

It starts all here

DNSenum Cheatsheet

dnsenum-usage

dnsenum Installation and Usage:

Navigate to: http://code.google.com/p/dnsenum/downloads/list

Download: dnsenum-*(Latest Version).tar.gz

Untar the files:

tar -zxvf dnsenum.*(Which ever Version you got).tar.gz

From the README File(You may need to install certain perl modules based on your current setup):

PREREQUISITES:

Modules that are included in perl 5.10.0:
Getopt::Long
IO::File
Thread::Queue

Other Necessary modules:
Must have:
Net::IP
Net::DNS
Net::Netmask
Optional:
Net::Whois::IP
HTML::Parser
WWW::Mechanize
XML::Writer

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

perl -MCPAN -e shell

and then type: install <MODULE>
eg:
cpan[1]> install XML::Writer
exit

dnsenum is a powerful PERL script that will attempt to do a bruteforce on a specific domain and has many good options.

Usage: sudo perl dnsenum.pl [Options] [Domain]

Couple of Examples:

Specify DNS Server to use:

sudo perl dnsenum.pl –dnsserver [DNS SERVER] -f [/path/to/wordlist] [Domain]

Scrape a number of Google pages for a number of results

sudo perl dnsenum.pl -p [Value] -s [Value] -f [/path/to/wordlist] [Domain]

Specify amount of Threads to use:

sudo perl dnsenum.pl –threads [value] -p 20 -f [/path/to/wordlist] [Domain]

Perform Whois Queries also:

sudo perl dnsenum.pl -w -f [/path/to/wordlist] [Domain]

Use Recursion also:

sudo perl dnsenum.pl -r -f [/path/to/wordlist] [Domain]

Be Verbose:

sudo perl dnsenum.pl -v -f [/path/to/wordlist] [Domain]

Output to a file:

sudo perl dnsenum.pl -o [/path/to/output.xml] -f [/path/to/wordlist] [Domain]

Perform 5 Threads 20 Google pages and do Whois:

sudo perl dnsenum.pl –enum -f [/path/to/wordlist] [Domain]

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s