80
◾
Ethical Hacking and Penetration Testing Guide
You would notice that the zone transfer would be successful and it would return the full list of
subdomains that normally cannot be discovered with other techniques.
Example
dig axfr @ns12.zoneedit.com zonetransfer.me
Automating Zone Transfers
Attempting to try each one of the name servers for zone transfers is obviously a tedious process.
Luckily, there are tools in BackTrack such as DNSenum and fierce that can make our job much
more easier.
DNSenum
is capable of performing forward lookup, reverse lookup, and also zone transfer
and is very simple to use. All you need to do is issue the following command from the /pentest/
enumeration/dns/dnsenum directory.
./dnsenum.pl
./dnsenum.pl zonetransfer.me
As you can see from the image, it displays all the records for zonetransfer.me. After this, it will
automatically try to perform a zone transfer on the site you have specified.
Fierce can also be used to perform this task. We will discuss fierce in the subdomain scanning
section as well, where we will discuss a variety of methods for gathering subdomains.
Dostları ilə paylaş: