GithubHelp home page GithubHelp logo

zyazhb / hosts-chooser Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 69 KB

A cross-platform software to solve DNS pollution.

Home Page: https://zyazhb.github.io/Hosts-chooser

License: GNU General Public License v3.0

Go 96.56% Makefile 3.44%
dns-pollution

hosts-chooser's Introduction

Hi there 👋

Intro

Welcome to my github page.

🌱 I’m a Security Engineer of ChinaUnicom .

I Worked at

  1. Chaitin Tech
  2. Xiaomi Inc

😘 And this is my BABY who is learning at University of Chinese Academy of Sciences.
This is my blog and this is its mirror, have a look!

GPG

pub  4096R/964DE07E 2020-08-25            
	 Fingerprint=BF27 2F57 55DE 6084 2550  EA50 B925 23CA 964D E07E 

hosts-chooser's People

Contributors

dependabot[bot] avatar mashiro01 avatar yueqsun avatar zyazhb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hosts-chooser's Issues

好久没看 main函数咋都爆炸了。。。。

image
clean没有指向 local和remote没有选项
参考代码

parser.add_argument("-r", help="Read a domain list", type=str)
if args.target:
            if args.local:
                domain, iplist = myutils.run_core(args.target, args.area)
            else:
                domain, iplist = myutils.run_remote_core(args.target, args.area)
    elif args.r:
        if args.local:
            for domain in open(args.r):
                domain, iplist = myutils.run_core(domain, args.area)
        else:
            for domain in open(args.r):
                domain, iplist = myutils.run_remote_core(domain, args.area)
    else:
        parser.print_help()
    if args.clean:
        myutils.output_dic(domain, myutils.clean(iplist))
    else:
        parser.print_help()

Win下 执行结果后 无法停止 需要ctrl+c

给一个可能有用的参考资料

On windows the signal API is very sparse, meaning we don't have SIGCHILD.
    So we just check if we have a return code on our process object.
    :param process:
    :param delay:
    :return:

定时更新hosts

Linux建议使用crontab实现
windows可以暂时直接写入hosts 定时还没想好怎么实现

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.