Giter Club home page Giter Club logo

dhcpstarver's Introduction

dhcpstarver

Repo for my Python script used to perform a DHCP Starvation attack by flooding the DHCP Server with bogus DHCPDISCOVER messages. The desired effect is to deplete the DHCP pool configured on the server, preventing other hosts from receiving configuration from the server.

Also included is the dhcplistener.py script, used to detect DHCP Attacks by sniffing DHCP packets.

Written as part of my Engineering Thesis about analysis of DHCP Attacks, and possible detection and preventative measures. Version used in said thesis is at commit #9.

Disclaimer

This script was written and is to be used for education and testing purposes only. Running this script WILL disrupt your network due to connected hosts not being able to obrain IP leases. This script must not be run on anything other than authorized networks, to which you have the right to perform such test (preferrably your own). I am not responsible for any consequences of user actions, e.g. disciplinary, criminal or network disruption. Use of this script indicates you acknowledge this warning and accept full responsibility.

DHCP Starver Usage

Usage: dhcpstarver.py [-h] [-f] [-t TIME] [-s IP] [-l FILE] iface

Positional arguments:
  iface                 Used network interface

Options:
  -h, --help            show this help message and exit
  -f, --full            Complete DORA by replying to DHCPOFFER messages with DHCPREQUEST
  -t TIME, --time TIME  Time between DHCPDISCOVER messages. Default - 0.001s
  -s IP, --server IP    Target IP of DHCP Server. Default - Broadcast
  -l FILE, --log FILE   Enable logging to a text file

DHCP Listener Usage

Usage: dhcplistener.py [-h] [-m MAX] [-l FILE] iface

Positional arguments:
  iface                Used network interface

Options:
  -h, --help           show this help message and exit
  -m MAX, --max MAX    Max ammount of DHCPDISCOVER messages per second. Default - 15
  -l FILE, --log FILE  Enable logging to a text file

Todo

  • add GUI to dhcpstarver
  • add GUI to dhcplistener
  • combine both scripts into single app
  • package the scripts into executable

dhcpstarver's People

Contributors

itsbudyn avatar

Watchers

 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.