Kali Linux信息收集之dnsmap

0x00 dnsmap介绍

dnsmap起源于2006年,是受到一个叫做“The Thief No One Saw”的小故事的启发后开发的,这个小故事能在Paul Craig的书《Stealing the Network - How to Own the Bow》中找到。
dnsmap 主要用来在渗透测试的信息收集阶段来协助测试网络的基础设施的安全性,它能发现目标的网段,域名,甚至是电话号码等等。
子域名穷举在穷举子域名方面也是一项新的技术,尤其是在域传送技术失效的时候。(在最近我很少看到公开允许域传输的例子)

工具来源:http://code.google.com/p/dnsmap/

dnsmap主页 | Kali dnsmap Repo仓库

  • 作者:pagvac
  • 证书:GPLv2

0x01 dnsmap功能

dnsmap - DNS域名蛮力穷举工具

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dnsmap 0.30 - DNS Network Mapper by pagvac (gnucitizen.org)
用法: dnsmap <目标域> [选项]
选项:
-w <指定字典文件>
-r <指定结果以常规格式输出文件>
-c <指定结果以csv格式输出文件>
-d <设置延迟(毫秒)>
-i <忽略的IP> (当你遇到一个虚假的IP地址时很有用)
示例:
dnsmap target-domain.com
dnsmap target-domain.com -w yourwordlist.txt -r /tmp/domainbf_results.txt
dnsmap target-fomain.com -r /tmp/ -d 3000
dnsmap target-fomain.com -r ./domainbf_results.txt

0x02 dnsmap用法示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
[email protected]:~# dnsmap cuit.edu.cn -w /usr/share/wordlists/dnsmap.txt -r domain.txt
dnsmap 0.30 - DNS Network Mapper by pagvac (gnucitizen.org)
[+] searching (sub)domains for cuit.edu.cn using /usr/share/wordlists/dnsmap.txt
[+] using maximum random delay of 10 millisecond(s) between requests
acm.cuit.edu.cn
IP address #1: 210.41.225.250
art.cuit.edu.cn
IP address #1: 210.41.224.220
bbs.cuit.edu.cn
IP address #1: 210.41.224.158
bwc.cuit.edu.cn
IP address #1: 210.41.224.220
cas.cuit.edu.cn
IP address #1: 210.41.224.220
cfd.cuit.edu.cn
IP address #1: 210.41.225.21
cjy.cuit.edu.cn
IP address #1: 210.41.224.220
cwc.cuit.edu.cn
IP address #1: 210.41.224.134
dag.cuit.edu.cn
IP address #1: 210.41.224.220
dep.cuit.edu.cn
IP address #1: 210.41.224.130
dgb.cuit.edu.cn
IP address #1: 210.41.225.36
dmt.cuit.edu.cn
IP address #1: 210.41.225.144
dns.cuit.edu.cn
IPv6 address #1: 2001:250:2004::1:33
dns.cuit.edu.cn
IP address #1: 210.41.224.33
dsx.cuit.edu.cn
IP address #1: 210.41.224.154
dzb.cuit.edu.cn
IP address #1: 210.41.224.220
ftp.cuit.edu.cn
IP address #1: 210.41.224.131
gdx.cuit.edu.cn
IP address #1: 210.41.224.234
gis.cuit.edu.cn
IP address #1: 210.41.224.211
gsu.cuit.edu.cn
IP address #1: 210.41.224.154
hbw.cuit.edu.cn
IP address #1: 210.41.224.134
hqc.cuit.edu.cn
IP address #1: 210.41.224.220
iip.cuit.edu.cn
IP address #1: 210.41.225.50
jcc.cuit.edu.cn
IP address #1: 210.41.225.228
jkx.cuit.edu.cn
IP address #1: 210.41.224.212
jmx.cuit.edu.cn
IP address #1: 210.41.224.154
jwb.cuit.edu.cn
IP address #1: 210.41.224.220
jwc.cuit.edu.cn
IP address #1: 210.41.225.108
kjc.cuit.edu.cn
IP address #1: 210.41.225.226
kjx.cuit.edu.cn
IP address #1: 210.41.224.154
kys.cuit.edu.cn
IP address #1: 210.41.224.154
lgp.cuit.edu.cn
IP address #1: 210.41.224.134
lib.cuit.edu.cn
IP address #1: 210.41.233.134
ltc.cuit.edu.cn
IP address #1: 210.41.224.220
mcm.cuit.edu.cn
IP address #1: 210.41.224.212
new.cuit.edu.cn
IP address #1: 210.41.224.154
old.cuit.edu.cn
IP address #1: 210.41.224.130
pan.cuit.edu.cn
IP address #1: 210.41.224.210
pay.cuit.edu.cn
IP address #1: 210.41.225.89
IP address #2: 210.41.225.85
pjb.cuit.edu.cn
IP address #1: 210.41.224.130
qjh.cuit.edu.cn
IP address #1: 210.41.224.130
qrs.cuit.edu.cn
IP address #1: 203.124.15.252
sce.cuit.edu.cn
IP address #1: 210.41.224.220
sec.cuit.edu.cn
IP address #1: 210.41.224.154
sgi.cuit.edu.cn
IP address #1: 10.254.224.2
[+] warning: internal IP address disclosed
skx.cuit.edu.cn
IP address #1: 210.41.224.154
sus.cuit.edu.cn
IP address #1: 210.41.224.162
sxy.cuit.edu.cn
IP address #1: 210.41.224.154
tjx.cuit.edu.cn
IP address #1: 210.41.224.220
tyb.cuit.edu.cn
IP address #1: 210.41.224.220
uia.cuit.edu.cn
IP address #1: 210.41.224.194
vod.cuit.edu.cn
IP address #1: 10.254.241.130
[+] warning: internal IP address disclosed
vpn.cuit.edu.cn
IP address #1: 221.237.162.66
www.cuit.edu.cn
IP address #1: 210.41.224.132
wyx.cuit.edu.cn
IP address #1: 210.41.224.130
xsc.cuit.edu.cn
IP address #1: 210.41.224.206
xsh.cuit.edu.cn
IP address #1: 210.41.224.66
xtw.cuit.edu.cn
IP address #1: 210.41.224.68
xyw.cuit.edu.cn
IP address #1: 210.41.224.220
yws.cuit.edu.cn
IP address #1: 210.41.224.154
zgm.cuit.edu.cn
IP address #1: 210.41.224.220
zjc.cuit.edu.cn
IP address #1: 210.41.225.21
zwl.cuit.edu.cn
IP address #1: 210.41.224.134
zyl.cuit.edu.cn
IP address #1: 210.41.224.134
zyz.cuit.edu.cn
IP address #1: 210.41.224.134
zzb.cuit.edu.cn
IP address #1: 210.41.224.220
[+] 66 (sub)domains and 67 IP address(es) found
[+] 2 internal IP address(es) disclosed
[+] regular-format results can be found on domain.txt
[+] completion time: 252 second(s)

0x02 dnsmap-bulk用法示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[email protected]:~# dnsmap-bulk.sh domain.txt
dnsmap 0.30 - DNS Network Mapper by pagvac (gnucitizen.org)
[+] searching (sub)domains for acm.cuit.edu.cn using built-in wordlist
[+] using maximum random delay of 10 millisecond(s) between requests
[+] 0 (sub)domains and 0 IP address(es) found
[+] completion time: 17 second(s)
dnsmap 0.30 - DNS Network Mapper by pagvac (gnucitizen.org)
[+] error: entered domain is not valid!
dnsmap 0.30 - DNS Network Mapper by pagvac (gnucitizen.org)
[+] error: entered domain is not valid!
dnsmap 0.30 - DNS Network Mapper by pagvac (gnucitizen.org)
[+] error: entered domain is not valid!
dnsmap 0.30 - DNS Network Mapper by pagvac (gnucitizen.org)
[+] searching (sub)domains for 210.41.225.250 using built-in wordlist
[+] using maximum random delay of 10 millisecond(s) between requests
...
...