Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
dhcpflood — C++ tool using libtins to craft and broadcast DHCP requests with random MACs across an IP pool, exhausting DHCP leases to demonstrate DHCP starvation attacks. | Kitploit
Tools/GitHubGitHub/amirsafiallah/dhcpflood
Packet Sniffing & AnalysisScripting & AutomationNetwork SecurityLearning & EducationRed TeamingAdversarial Attack
GitHubamirsafiallah/dhcpflood

dhcpflood

C++ tool using libtins to craft and broadcast DHCP requests with random MACs across an IP pool, exhausting DHCP leases to demonstrate DHCP starvation attacks.

View Repository
138 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

DHCP Flood C++ Source

This source code uses libtins to manipulate DHCP packets. Creates a DHCP Request of all IP pool range and broadcasts. This is a simple source code just for educational purposes.

How It Works

  • It picks an IP address from the specified IP pool range
  • Generates a random MAC
  • Creates a DHCP Request packet with that IP and random MAC
  • Broadcasts
  • Waits for receiving ACK/NACK from DHCP Server
  • Picks the next IP address from the ip range and repeats steps again.

The steps explained above, causes an starvation in DHCP IP assignment. So DHCP won't work any more.

Warning

This source code was written for educational purposes and run under controlled conditions, It may cause network problems, Use it on your own risk.

How to compile

  • Compile and install libtins

  • Run the following commands on the DHCP Flood directory:

      mkdir build
      cmake ..
      make
    

Note that you may need root privilege to send packets.

Licenses

libtins (packet crafting and sniffing library)

  • https://libtins.github.io/
Download Tool