Skip to content

Cosmin-Hodor/pSniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

pSniffer

Capture and process network packets on a specified network device using the libpcap library.

It takes the name of the network device as a command line argument, opens the device using pcap_open_live, sets filters for the desired packets using pcap_setfilter, captures and processes the packets using pcap_loop, and finally closes the device and frees up resources using pcap_close.

If any errors occur, the code prints error messages to stderr.

About

Sniff network data packets with C and libpcap!

Resources

Stars

Watchers

Forks

Languages