Comments (7)
还有程序并发能力很强,可以充分发挥网络性能,但是也会造成差的网络retry随便都超过3次,造成结果不准确。线程来限制速率的方式不够可控。不知道后期能不能改成 masscan和zmap的 限制 每分钟最大发包数这样。
from dnsbrute.
使用权威dns是有我的考虑的,可以看http://sh3ll.me/archives/201704041222.txt,最后一条。
上一个小版本使用的是第三方dns。如果域名没有配置ns服务器,那他是怎样解析的呢,如果那样他应该不会有子域名的吧。
第二个问题,本来我是想用发包数的:),但是发包数不是很好理解,于是就用这个方案了,使用线程+间隔时间的方式。
后面有时间可能会增加些别的配置项,比如发包、是否轮寻子域名等。
感谢:)
from dnsbrute.
线程+时间间隔其实可以等同于发包数呀,但是也对,感觉不优雅。
from dnsbrute.
有子域名,例如大家喜欢的 bilibili.com ,直接查 bilibili.com 是没有ns记录的
from dnsbrute.
选择第三方dns时候的确需要做判断,我最上面那样写,会造成部分效率低下。但是在没ns记录情况下,也不为是一个选择,所以写在 ns记录判断无的分支里。
from dnsbrute.
找到原因了,bilibili是走的soa,并不是没有ns记录。这点以前确实不了解,学习了。
➜ chuhades/dnsbrute git:(master) dig soa bilibili.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> soa bilibili.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5911
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;bilibili.com. IN SOA
;; ANSWER SECTION:
bilibili.com. 123 IN SOA ns1.hdslb.net. root.hdslb.net. 5351604 3600 180 1209600 180
;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Sun May 21 15:14:07 CST 2017
;; MSG SIZE rcvd: 95
➜ chuhades/dnsbrute git:(master) dig @ns1.hdslb.net ns bilibili.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> @ns1.hdslb.net ns bilibili.com
; (4 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37523
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1680
;; QUESTION SECTION:
;bilibili.com. IN NS
;; AUTHORITY SECTION:
bilibili.com. 180 IN SOA ns1.hdslb.net. root.hdslb.net. 22281604 3600 180 1209600 180
;; Query time: 80 msec
;; SERVER: 27.148.248.70#53(27.148.248.70)
;; WHEN: Sun May 21 15:14:20 CST 2017
;; MSG SIZE rcvd: 95
➜ chuhades/dnsbrute git:(master) dig @ns1.hdslb.net www.bilibili.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> @ns1.hdslb.net www.bilibili.com
; (4 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56257
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1680
;; QUESTION SECTION:
;www.bilibili.com. IN A
;; ANSWER SECTION:
www.bilibili.com. 300 IN CNAME bilibili.hdslb.net.
bilibili.hdslb.net. 180 IN A 219.144.79.7
;; Query time: 34 msec
;; SERVER: 110.76.40.240#53(110.76.40.240)
;; WHEN: Sun May 21 15:14:29 CST 2017
;; MSG SIZE rcvd: 93
- https://zhidao.baidu.com/question/385509462.html
- https://www.zhihu.com/question/40028869
- http://bbs.51cto.com/thread-908637-1.html
from dnsbrute.
更新了新版本,不再采用权威ns 服务器的方式(可自己指定ns server),解决了此问题。
➜ dnsbrute wc -l bilibili.com.csv
66 bilibili.com.csv
from dnsbrute.
Related Issues (14)
- [REQUEST] Allow more than 1 dns resolver HOT 2
- hackertarget结果不保存 HOT 1
- mixInAPIDict这个函数是否可以异步起来? HOT 2
- 建议试试sdo.com HOT 3
- 为什么每次我执行都只能得到一个结果
- 编译好的程序在哪里? HOT 2
- 经过我的不断尝试,终于成功编译!
- dnsbrute HOT 2
- 权威 DNS 相关问题 HOT 2
- 为什么爆破结束后 close client 的时候会一直卡死,遇到到多次 HOT 5
- 建议取消重试次数,或定为100 HOT 1
- dns: failed to unpack truncated message HOT 1
- The name dnsbrute doesn't describe the tool functionality, what is it suppose to do? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnsbrute.