Configure Router & Switch
Router Configs
hostname DHCP_Starvation
int fas0/0
no shutdown
ip address 172.16.1.1 255.255.255.0
ip dhcp pool lan_starvation
network 172.16.1.0 255.255.255.0
default-router 172.16.1.1
dns-server 8.8.8.7
dns-server 7.7.7.8
ip dhcp excluded-address 172.16.1.1 172.16.1.5
DHCP_Starvation#sh ip dhcp ?
binding DHCP address bindings
conflict DHCP address conflicts
database DHCP database agents
import Show Imported Parameters
pool DHCP pools information
relay Miscellaneous DHCP relay information
server Miscellaneous DHCP server information
__________________________________________________
Switch Configs
hostname switch_DHCP
int vlan 1
no shutdown
ip address dhcp
int range fas0/1 -24
spanning portfast
Switch sh ip dhcp bindings did switch get an IP from DHCP server
__________________________________________________
Router:
sh ip dhcp binding
ping switch 172.16.1.6 /24
Connect PC to Switch
cmd: c:\ipconfig /all
IP:
Router DHCP
sh ip dhcp bindings
Boot Kali 172.16.1.14 /24
(rpmkali?rpmkali)
ip address
Wireshark Ping
Kali: ping router 172.16.1.1
ping switch 172.16.1.6
Router DHCP
sh ip dhcp bindings
Boot Kali
sudo apt update
sudo apt upgrade
sudo yersinia -G
Launch attack
DHCP
sending Discover packet
Router DHCP
sh ip dhcp bindings
spam space bar to see all the IP address used
Boot Win 10 VM to see if device gets IP address