Skip to content

m-hejrati/Packet-Sniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packet Sniffer

Packet sniffer with C++ language and pcap

Installation

we use libpcaq library in this project, for installing it you can write this command:

sudo apt-get install libpcap-dev

config files written in json format, we use json-c library to parse them:

sudo apt install libjson-c-dev

for logging, we use spdlog library, download it from git:

git clone https://github.com/gabime/spdlog.git

for compiling C++ program we should add -lpcap and -ljson-c and directory name of spdlog library:

g++ sniffer.cpp -o sniffer.out -lpcap -ljson-c -I "spdlog/include"

and it needs to run with sudo:

sudo ./sniffer.out

About

Packet sniffer with C++ language and pcap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published