git clone git@github.com:gordcurrie/dhcp-tools.git
- Install libpcap-dev on linux
sudo apt-get install libpcap-dev
go build
Needs to be run as root to be able to capture packets.
Sniffs available packets for DHCP traffic.
sudo ./dhcp-tools sniff
Pass optional -c
--capture
flag will capture files in $HOME/.dhcp-tools/captures
sudo ./dhcp-tools sniff -c
Sends a selected previously captured packet on the selected interface.
sudo ./dhcp-tools send
Deletes all files in the captures directory.
sudo ./dhcp-tools clear
This guide assumes you are building from source. If you wish to go install
you will have to ensure that the path to the binary is included in sudo's $PATH.