Skip to content
This repository was archived by the owner on Jan 2, 2022. It is now read-only.

erem2k/linuxSniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packet Sniffer for Linux

This little application sniffs IPv4 packets from user-selected Ethernet device by using libpcap.
Server process will automatically daemonize on startup. You can use client process to communicate with server and pull stats.
On sniffer start server will attempt to read previous captured packet's data from locally created file. If file is invalid or cannot be opened, no stats are loaded.
On sniffer stop server will attempt to write stats to local file.
Requires LibDS by Peter Bozarov to run.

Available client commands:

  • start - Start sniffing packets from default or selected interface
  • stop - Stop sniffing packets
  • show [ip] count - Print received packet count from [ip] address
  • select iface [iface] - Set interface for sniffing. eth0 is used by default, or if it doesn't exist first polled device is sniffed
  • stat [iface] - Print all collected statistics for [iface]. If [iface] is omitted, stats for all interfaces are displayed
  • --h - Show help

About

IP packet sniffer for Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published