V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
mckelvin
V2EX  ›  Python

用Python写了个自动生成Google北京hosts的工具

  •  
  •   mckelvin ·
    mckelvin · 2013-03-27 12:40:34 +08:00 · 5015 次点击
    这是一个创建于 4071 天前的主题,其中的信息可能已经有所发展或是发生改变。
    这个工具做了三件事:

    1. 用ping暴力扫描Google北京IP段的存活主机
    2. 遍历检测所有存活主机443端口SSL证书的subject common name(CN) 得到IP-域名的映射
    3. 对google_domains.txt中每个每个域名进行解析

    项目地址: https://github.com/mckelvin/google-beijing-hosts-generator
    4 条回复    1970-01-01 08:00:00 +08:00
    est
        1
    est  
       2013-03-27 13:50:57 +08:00
    lz这是在描述 how_google_cn_die.mp4
    wwqgtxx
        2
    wwqgtxx  
       2013-03-27 21:22:20 +08:00 via Android
    你会导致cn ip在19大的时候被再次丢包的………
    这种东西,不宜广传,否则随机丢包害了大家。
    mckelvin
        3
    mckelvin  
    OP
       2013-03-27 23:40:09 +08:00
    @est
    @wwqgtxx
    而且还可能会导致github被墙对吗?
    DON'T PANIC —— GoAgent・README

    我已经移除项目里的几个数据文件了。这帖子会被下沉的
    wwqgtxx
        4
    wwqgtxx  
       2013-03-28 13:25:24 +08:00 via Android
    @mckelvin 不要直接亮出hosts ip即可,其他到没什么。github上的敏感项目还是很多的,不会因为某一个被封。而且现在不少运营商直接封锁了203.208ip段的ping包,真的担心有一些运营商会彻底封锁203.208.段。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2093 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 05:36 · PVG 13:36 · LAX 22:36 · JFK 01:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.