Giter Site home page Giter Site logo

go-dns-poisoner's Introduction

DNS Goisoner ๐Ÿคฎ

An on-path DNS poisoning attack tool, written in Golang.

Developed using the GoPacket library, supports just plain (UDP) DNS traffic over port 53.

DNS Goisoner captures the traffic from a network interface in promiscuous mode, and injects forged responses to selected DNS A requests with the goal of poisoning the cache of the victim's resolver.

Parameters & Usage ๐Ÿ’ฌ

DNS Goisoner has three parameters and usage for this:

go run dnspoison.go [-i interface] [-f hostnames] [expression]
  • -i : Listen on network device (e.g., eth0). If not specifed, default interface (eth0) will be used.
  • -f : Read a list of IP adress and hostname pairs specifying the hostnames to be hijacked. If '-f' is not specified, DNS Goisoner will forge replies to all observed requests with the chosen interface's IP address as an answer.
  • : It is an optional argument. It is a BPF filter that specifies a subset of the traffic to be monitored. This option is useful for targeting a single victim or a group of victims.

Example Hostnames & Usages

Hostnames file should contain one IP and hostname pair per line, seperated by whitespace, in the following format:

100.90.80.70      ex.example.com
10.9.8.7          amp.example.com
192.168.62.27     le.example.com

Example usages:

sudo go run main.go -i ens33 -f targets.txt

sudo go run main.go -i ens33

sudo go run main.go -i wlan0 -f targets.txt "dst host 192.168.2.10"

Disclaimer โ›”

All information and software available on this page are for educational and test purposes only. Use these at your own discretion, the repository owners cannot be held responsible for any damages caused.

Usage of all tools on this repository for attacking targets without prior mutual consent is illegal. It is the end userโ€™s responsibility to obey all applicable local, state and federal laws. We assume no liability and are not responsible for any misuse or damage caused by this repository.

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.