DHCPig is a cybersecurity tool that initiates an advanced DHCP exhaustion attack. It consumes all IP addresses on the local area network (LAN), preventing new users from obtaining IP addresses, releasing any IP addresses in use, and then sends gratuitous ARP packets to knock all Windows hosts offline. DHCPig is based on the scapy library and requires admin privileges to execute. No configuration is needed; you simply pass the interface as a parameter. It has been tested on various Linux distributions and multiple DHCP servers such as ISC, Windows 2k3, and Windows 2k8.
SYSTEM REQUIREMENTS
RAM : Minimum 512MB (Recommended : 1GB)
Storage : Minimum 10MB (for installation), additional space for project files
OS : Linux, macOS (Windows support via Cygwin, but not officially supported)
Architecture : Supports both 32-bit and 64-bit architectures
Available On : PC
ADDITIONAL INFORMATION
Kamorin
January 2024
85KB (installation size)
Kamorin, a contributor to the cybersecurity community
English
August 2024 (Version 1.6)
Python
Cross-platform (Linux, macOS)
GNU General Public License (GPL)
The DHCPig tool is primarily used for initiating an advanced DHCP exhaustion attack. Its main functions include:
pig.py eth0DHCPIG offers several flags and options to customize its behavior :
- -h or --help : Displays help information
- -v or --verbosity : Sets the verbosity level (0-99)
- -6 or --ipv6 : Enables DHCPv6 mode
- -1 or --v6-rapid-commit : Enables RapidCommit (2-way IP assignment instead of 4-way)
- -s or --client-src : Specifies a list of client MAC addresses
- -O or --request-options : Requests specific option codes (e.g., 21, 22, 23 or 12, 14-19, 23)
- -f or --fuzz : Randomly fuzzes packets (off by default)
- -t or --threads : Sets the number of sending threads (1 by default)
- -a or --show-arp : Detects and prints ARP who-has requests (off by default)
- -i or --show-icmp : Detects and prints ICMP requests (off by default)
- -o or --show-options : Prints lease information (off by default)
pig.py eth0pig.py -v 50 eth0pig.py -6 -v 50 -1 eth0
$ sudo apt-get update
$ sudo apt install dhcpig
sudo apt-get updateapt-get : sudo apt-get -y install dhcpigapt : sudo apt -y install dhcpigaptitude, ensure it’s installed first, then : sudo aptitude -y install dhcpigpython pig.pyscapy library are installed.git clone https://github.com/kamorin/DHCPig.gitcd DHCPigsudo python pig.py
$ sudo apt remove dhcpig
$ sudo apt autoclean && apt autoremove
sudo apt-get remove dhcpigsudo apt-get -y autoremove dhcpigsudo apt-get -y purge dhcpigsudo apt-get -y autoremove --purge dhcpigpip uninstall scapyDHCPig) and delete it : rm -rf /path/to/DHCPigscapy specifically for DhcPig, you can uninstall them using pip : pip uninstall scapy.bashrc, .zshrc, or .bash_profile).Copyright © 2025 HACKERSPOT
All original content, including tools, software, and other information, is protected by copyright and remains the property of its respective owners.
HackerSpot is an informational platform that offers resources such as tools, software, courses, internships, and various other materials aimed at supporting individuals passionate about CyberSecurity and IT.