Selasa, 26 Oktober 2010

Create your own packet sniffer in C

A simple implementation of a packet sniffer in C on linux platform using the libpcap library. This packet sniffer currently sniffs IP , TCP , ICMP and UDP packets. It can be modified to any protocol as needed just by introducing the header information in it. It is a little modified version of sniffer from tcpdump website.Note : To run this code you require root permissions. Here's the code: //

Tidak ada komentar:

Posting Komentar