Skip to content

juanga333/DHCP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DHCP-Server

This is a DHCP rogue server developed for ethical purposes and pestesting.

Starting

Pre-requisites

sudo apt install python3
sudo apt install python3-pip

Installation

git clone https://github.com/juanga333/DHCP-Server.git
cd DHCP-Server
pip3 install -r requirements.txt

Usage

This is the basic usage example

sudo python3 dhcpserver.py -m <netmask>

In order to specify dns and gateway ip

sudo python3 dhcpserver.py -m <netmask> -d <dns_ip> -g <gateway_ip>

Also You can specify the list of ips for the victims

sudo python3 dhcpserver.py -m <netmask> -d <dns_ip> -g <gateway_ip> -x 192.168.0.101-120

You can also do a starvation attack

sudo python3 starvation.py

Complementary tools

  • Sniffer - A HTTP Post sniffer in order to capture credentials
  • DNS Server - A DNS rogue server in order to change spoof domains
  • Deauth tool - A tool to disconnect wifi clients. When victims reconnect, they could take spoof DHCP configuration