Giter Site home page Giter Site logo

google-beijing-hosts-generator's Introduction

Google(Beijing) hosts generator

这个工具做了三件事:

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

其中步骤1和步骤2的结果默认会被缓存在db.shelve

安装依赖

pip install -r requirements.txt

使用

cd src
python main.py # 可选 -f 会强制执行步骤1和步骤2
# 运行完毕后 main.py 同目录会生成hosts文件。其中有些域名可能不能被正常解析,这时你可能要手动打个patch
patch hosts postfix.patch

google-beijing-hosts-generator's People

Contributors

mckelvin avatar

Watchers

wwqgtxx avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.