Skip to content

PacketX is a lightweight high-performance software for real-time capturing and analyzing network traffic. This project leverages c++, tcpdump, tshark and bash in linux to inspect network packets and identify high-bandwidth applications.

Notifications You must be signed in to change notification settings

eslamdyab21/PacketX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📡 Introduction

PacketX is a lightweight high-performance software for real-time capturing and analyzing network traffic. This project leverages linux, tcpdump, tshark, bash and c++ to inspect network packets and identify high-bandwidth applications utilizing **multithreaded C++, mutex-controlled data synchronization, managing local files, and automated build using Makefiles.


🚀 Features

Capture Network Traffic using tcpdump for raw packet collection.
Analyze Bandwidth Usage with tshark and c++ to break down traffic.
Identify High Data Usage Apps by inspecting UDP/TCP connections.
Real Time Traffic Monitoring with bash and c++.
Save Analyzed Captured State.


🎬 Demo

PacketX_Demo.mp4

🎬 How To Run

  • Install tcpdump and tshark if not already.
sudo apt install tcpdump tshark
  • Compile C++ with Makefile, only standard libraries are used.
make clean
make
  • Run the tcpdump_capture.sh bash script giving 2 arguments
    1. Network interface name that you want to capture its traffic
    2. Time chunk of capture, this will affect the update speed in the c++ program too, if you want to see whats going on in real time, 5 or 10 seconds is a good choice
sudo ./tcpdump_capture.sh wlp8s0 10
  • Run the C++ program
./main

🚀 State Saving

The processed captured traffic is saved in a csv file traffic_log.csv, the program will use this data a starting point if the file exists.

About

PacketX is a lightweight high-performance software for real-time capturing and analyzing network traffic. This project leverages c++, tcpdump, tshark and bash in linux to inspect network packets and identify high-bandwidth applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published