Arp Sniffer在linux下面的具体实现
来源:51cto.com
/*============================================================================
Coder: Paris-ye
Released on: 1/9/2003
Test on: redhat 9.0
Information:
This is a arp spoof sniffer.
W <— workstation
B <— Server or GateWay
M <— Man in the middle (agent),self IP address
Make:
first you must install “pcap” and “libnet”
gcc -I/usr/local/include -L/usr/local/lib -o sniffer sniffer.c -lpcap -lnet
Usage:
./sniffer -I [Interface] -M [Self IP] -W [Workstation IP] -S [Server IP] -P [port] 阅读全文…