Giter Site home page Giter Site logo

dns-amplification-attack's Introduction

This is a proof of concept for a DNS amplification attack. By sending 
UDP packets to a DNS server with the target spoofed as the source, you 
can effectively amplify your bandwidth to overload a hosts bandwidth. 
These attacks are becoming common, and show flaws in the DNS system. 
This is not a weaponized tool, but the dns.c and dns.h files are 
independent of and can function without the provided main.c code, just 
read the comments to figure out what is being passed to the functions.

This code must be run as root to be able to access Raw Sockets.

Tested and running on Debian Wheezy 7.0, compiles with both GCC and clang. 
Makefile uses clang.

In my Testing, I could not make this work on actual, real world targets. Why?
Because most common networks don't allow UDP source spoofing.
 I am not trying to weaponize it, so I have not put more than a few
hours into trying to figure out why, to no avail. Either way, it is still cool
to be able to target a machine on your LAN and see endless streams of DNS packets
showing up in Wireshark. 

This WILL saturate your network connection, and will probably render most 
other networking on the computer slow in the best case, unresponsive in the 
worst, while the tool is running.

This code was written with the help of code found at
http://www.binarytides.com/raw-udp-sockets-c-linux/
and
http://www.binarytides.com/dns-query-code-in-c-with-linux-sockets/
The code found at these URL's was not released under any license, but I like 
to give credit where credit it due. With no prior experience with in 
programming with Raw Sockets or the DNS system, these resources were invaluable.

dns-amplification-attack's People

Contributors

ethanwilloner avatar finlaydag33k 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.