dhcp offer not being received on forged dhcp discovery

dhcp offer not being received on forged dhcp discovery

I am building a dhcp starvation attack which consists of sending multiple dhcp discoveries with random macs and then requesting the ip offered by the server multiple times. The problem is no OFFER packets reach my applications if i put a mac that is not the one of the interface. If i enter the right mac I get an offer back. Here is the packet I am sending below: enter image description here

I checked that the broadcast flag is on and the mac of the ethernet frame is the same as the one in the chaddr field of dhcp which could cause mac validation on the dhcp server to ignore the packet. Still I dont get any answer.

So far everything is pointing me to the kernel rejecting packets because they have a different mac and that I would have to use promiscuos mode to see them. But I also read that in theory with the broadcast flag enabled that shouldnt be necessary. Yet it's not working.

Answer

Having messed with DHCP back in the day; the response packets are not broadcast so yes you do have to set promiscuous mode.

Enjoyed this article?

Check out more content on our blog or follow us on social media.

Browse more articles