| 1 |
# dnsmap |
| 2 |
|
| 3 |
#### dnsmap - scan for subdomains using brute-forcing techniques |
| 4 |
|
| 5 |
## Help this project ## |
| 6 |
|
| 7 |
dnsmap needs your help. **If you are a programmer** and if you want to help a |
| 8 |
nice project, this is your opportunity. |
| 9 |
|
| 10 |
dnsmap was imported from some tarballs (the original homepage[1] and |
| 11 |
developers are inactive). After this, all patches found in Debian project and |
| 12 |
other places for this program were applied. All initial work was registered in |
| 13 |
ChangeLog file (version 1.6 and later releases). dnsmap is being packaged |
| 14 |
in Debian[2] Project. |
| 15 |
|
| 16 |
If you are interested to help dnsmap, read the [CONTRIBUTING.md](CONTRIBUTING.md) file. |
| 17 |
|
| 18 |
[1]: https://code.google.com/archive/p/dnsmap/ |
| 19 |
[2]: https://tracker.debian.org/pkg/dnsmap |
| 20 |
|
| 21 |
## What is dnsmap? ## |
| 22 |
|
| 23 |
dnsmap scans a domain for common subdomains using a built-in or an external |
| 24 |
wordlist (if specified using -w option). The internal wordlist has around 1000 |
| 25 |
words in English and Spanish as ns1, firewall servicios and smtp. So will be |
| 26 |
possible search for smtp.example.com inside example.com automatically. Results |
| 27 |
can be saved in CSV and human-readable format for further processing. dnsmap |
| 28 |
does NOT require root privileges to be run, and should NOT be run with such |
| 29 |
privileges for security reasons. |
| 30 |
|
| 31 |
dnsmap was originally released back in 2006 and was inspired by the fictional |
| 32 |
story "The Thief No One Saw" by Paul Craig, which can be found in the book |
| 33 |
"Stealing the Network - How to 0wn the Box". |
| 34 |
|
| 35 |
dnsmap is mainly meant to be used by pentesters during the information |
| 36 |
gathering/enumeration phase of infrastructure security assessments. During the |
| 37 |
enumeration stage, the security consultant would typically discover the target |
| 38 |
company's IP netblocks, domain names, phone numbers, etc. |
| 39 |
|
| 40 |
Subdomain brute-forcing is another technique that should be used in the |
| 41 |
enumeration stage, as it's especially useful when other domain enumeration |
| 42 |
techniques such as zone transfers don't work (I rarely see zone transfers being |
| 43 |
publicly allowed these days by the way). |
| 44 |
|
| 45 |
Fun things that can happen: |
| 46 |
|
| 47 |
1. Finding interesting remote access servers (e.g.: |
| 48 |
https:<span>://</span>extranet.example.com). |
| 49 |
|
| 50 |
2. Finding badly configured and/or unpatched servers (e.g.: test.example.com). |
| 51 |
|
| 52 |
3. Finding new domain names which will allow you to map |
| 53 |
non-obvious/hard-to-find netblocks of your target organization (registry |
| 54 |
lookups - aka whois is your friend). |
| 55 |
|
| 56 |
4. Sometimes you find that some bruteforced subdomains resolve to internal IP |
| 57 |
addresses (RFC 1918). This is great as sometimes they are real |
| 58 |
up-to-date "A" records which means that it *is* possible to enumerate |
| 59 |
internal servers of a target organization from the Internet by only using |
| 60 |
standard DNS resolving (as opposed to zone transfers for instance). |
| 61 |
|
| 62 |
5. Discover embedded devices configured using Dynamic DNS services (e.g.: IP |
| 63 |
Cameras). This method is an alternative to finding devices via Google |
| 64 |
hacking techniques. |
| 65 |
|
| 66 |
## Build and Install ## |
| 67 |
|
| 68 |
To build and install, run the following commands: |
| 69 |
|
| 70 |
$ ./autogen.sh |
| 71 |
$ ./configure |
| 72 |
$ make |
| 73 |
# make install |
| 74 |
|
| 75 |
To return to original source code you can use '$ make distclean' command. |
| 76 |
|
| 77 |
On Debian systems you can use '# apt install dnsmap'. |
| 78 |
|
| 79 |
## Author ## |
| 80 |
|
| 81 |
dnsmap was originally developed by "pagvac" under GPL-2+ license. |
| 82 |
|
| 83 |
Currently, the source code and newer versions are available at |
| 84 |
https://github.com/resurrecting-open-source-projects/dnsmap |