pentesting, updated
DHCP starvation and rogue DHCP
Exhaust a DHCP pool or stand up a rogue server to control what clients on the segment resolve and route through.
Goal
Deny legitimate clients a DHCP lease, or hand out attacker-controlled gateway/DNS settings to redirect their traffic.
How to test
yersinia dhcp -attack 1 # DHCP starvation: exhaust the address pool
# rogue DHCP server, pointing clients at an attacker-controlled gateway/DNS:
dnsmasq --interface=eth0 --dhcp-range=10.10.10.100,10.10.10.200,12h \
--dhcp-option=3,10.10.10.50 --dhcp-option=6,10.10.10.50
What to look for
New clients failing to get a lease (starvation), or a client on the segment picking up the attacker’s rogue lease and routing through it.
Notes
Highly disruptive to a shared network — never run against a production segment without an explicit, time-boxed agreement.