Git Product home page Git Product logo

dstar's Introduction

GPLv3 License

Dstar ๐Ÿ”จ

This tool implement various DHCP attacks and can be used to make experiments and test on your network!

Supported features:

  • Flood -> Flood DHCP server with large amount of DHCP discover messages (this attack not acquire addresses!)
  • Starvation -> Try to acquire all addresses in DHCP pool, you can use this option with a rogue DHCP server... MITM? ๐Ÿ˜
  • Built-in rogue DHCP server

Setting up dstar

First of all getting the code from repository:

$ git clone https://github.com/jacopodl/dstar

Compile it with followings command:

$ cd dstar
$ git submodule init && git submodule update
$ cmake .
$ make

Or if you are very busy:

$ ./build.sh

Usage example

Flood DHCP server with discover messages:

$ sudo ./dstar %interface% --flood

Exhaust DHCP pool and release all addresses on exit:

$ sudo ./dstar %interface% --starvation

without release addresses:

$ sudo ./dstar %interface% --starvation --no-release

Setting up rogue DHCP server with the stolen addresses:

$ sudo ./dstar %interface% --starvation --server

Getting help with:

$ ./dstar --help

Action snapshot ๐Ÿ“ท

$ sudo ./dstar %interface% --starvation

@@@@@@@    @@@@@@   @@@@@@@   @@@@@@   @@@@@@@
@@@@@@@@  @@@@@@@   @@@@@@@  @@@@@@@@  @@@@@@@@
@@!  @@@  !@@         @@!    @@!  @@@  @@!  @@@
!@!  @!@  !@!         !@!    !@!  @!@  !@!  @!@
@!@  !@!  !!@@!!      @!!    @!@!@!@!  @!@!!@!
!@!  !!!   !!@!!!     !!!    !!!@!!!!  !!@!@!
!!:  !!!       !:!    !!:    !!:  !!!  !!: :!!
:!:  !:!      !:!     :!:    :!:  !:!  :!:  !:!
 :::: ::  :::: ::      ::    ::   :::  ::   :::
:: :  :   :: : :       :      :   : :   :   : :
                                                 vX.x.x


[<---] DHCP DISCOVER
[--->] DHCP OFFER
[<---] DHCP REQUEST
[--->V] DHCP ACK
	Ip:192.168.1.99 - MAC:52:c5:b9:35:0c:42 lease(s):21600

[<---] DHCP DISCOVER
[--->] DHCP OFFER
[<---] DHCP REQUEST
[--->V] DHCP ACK
	Ip:192.168.1.118 - MAC:12:3c:09:28:ac:cb lease(s):21600

[<---] DHCP DISCOVER
^CStopping...
Releasing addresses...
All done!

Possible improvements:

  • Multithread capability
  • DHCPv6

dstar's People

Contributors

jacopodl 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.