Giter VIP home page Giter VIP logo

simple-dns's Introduction

simple-dns

A simple regular-expression based DNS server, based on twisted.

Usage

hosts 文件里指定要劫持的域名,格式为:

#IP            Domain
127.0.0.1     www.alipay.com
127.0.0.1     /.*?\.alipay\.com/

支持正则表达式,用/包围。
非劫持域名会向上级 DNS Server 递归查询,返回正确的 IP 地址。

Sample

Attacker(127.0.0.1):

sudo python dns.py

Target(127.0.0.1):

➜  ~ nslookup 
> server 127.0.0.1
Default server: 127.0.0.1
Address: 127.0.0.1#53
> test.website
Server:		127.0.0.1
Address:	127.0.0.1#53
   
Non-authoritative answer:
Name:	test.website
Address: 1.1.1.1
> 

simple-dns's People

Contributors

ricterz avatar

Watchers

 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.