- libpcap
If you are using Ubuntu/Debian you can install libpcap
by apt command:
sudo apt install libpcap-dev
git clone https://github.com/abowloflrf/net.git
cd net
mkdir build && cd build
cmake ..
make
Capture ARP/TCP/ICMP requests(TCP and ICMP packet parser is not completed yet).
sudo ./Main --capture
You have to set the pcap filter string in capture.c
:
char filter_exp[] = "(icmp or arp) and ether src 9c:b6:d0:d3:b8:5d";
Send an ARP broadcast request from a specified device interface to get the MAC address who holds the IP address.
sudo ./Main --arp --dev <device interface> --target <ip addr>
Send ICMP echo request with custom data string.
sudo ./Main --icmp --target <ip addr> --msg <data>