打算写一个 google 北京的 hosts ip 枚举程序,稍微考虑了下,发现还是 gevent 实现方便。
代码如下,跑起来很欢畅的~
代码如下,跑起来很欢畅的~
|
INT21HAug 25, 2012
1
这个直接用 threading 就可以了吧?
|
|
ipconfigerAug 26, 2012
7
别用DNS一切都ok
|
|
8
改了一下,获取的 ip 更有效了。
|
|
9
@ipconfiger gevent 1.0 已经修复 DNS errno 66/67 的问题了。
|
|
weiqiyijiAug 27, 2012
10
我一般用gevent只patch ssl和socket,其他的都不patch
|
|
11
改了一下, 不止搜索证书为 *.google.com 了, 只要是 google.com 的都输出了.
|
|
tonyseekOct 24, 2012
12
`except ... pass` 看着非常不舒服
|
|
clinoOct 24, 2012
13
枚举出来的 ip 也都不能用呀...
|
|
cmseeNov 6, 2012
19
203.208.47.2
203.208.47.4 203.208.47.8 203.208.47.1 203.208.47.22 203.208.47.28 203.208.47.33 203.208.47.68 203.208.47.32 203.208.47.23 203.208.47.25 203.208.47.20 203.208.47.5 203.208.47.29 203.208.47.37 203.208.47.66 203.208.47.133 203.208.47.136 203.208.47.146 203.208.47.31 203.208.47.6 203.208.47.17 203.208.47.19 203.208.47.159 203.208.47.130 203.208.46.16 203.208.46.23 203.208.46.24 203.208.46.30 203.208.46.32 203.208.46.27 203.208.46.129 203.208.46.33 203.208.46.128 203.208.46.28 203.208.46.20 203.208.46.131 203.208.46.34 203.208.46.7 203.208.46.198 203.208.46.200 203.208.46.201 203.208.46.209 203.208.46.243 203.208.46.152 203.208.46.214 203.208.46.246 203.208.46.241 203.208.46.210 203.208.46.197 203.208.46.225 203.208.46.194 203.208.46.242 203.208.46.199 203.208.46.208 203.208.46.213 203.208.46.245 203.208.46.224 203.208.46.229 203.208.46.25 |
|
staryFeb 17, 2013
20
大哥,这个不能用了restart,Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART ================================ >>> >>> ================================ RESTART ================================ >>> ,如何处理?多谢! |