Skip to content

it's a very simple packet sniffer, that detect packets' protocols over network layer.

Notifications You must be signed in to change notification settings

Riahiamirreza/cpp_packet_sniffer

Repository files navigation

Packet sniffer

it's a very simple packet sniffer. for run follow these simple steps:

  • install libpcap, libjson-cpp and spdlog
  • run command chmod +x complile.sh
  • run command ./compile
  • then run g++ list_all_devices.cpp -lpcap -o list.out
  • for seeing at available devices on network run ./list.out
  • the run sudo ./pcap.out <deivice-name> <number-of-packets-to-capture> <log-level>

for example: sudo ./pcap enp3s0 50 3

this will capture 50 packets on device enp3s0 with and log levels are at level info.

About

it's a very simple packet sniffer, that detect packets' protocols over network layer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published