Traffic Analyzer is a simple C++ program that uses the libtins library to capture and analyze network traffic. It can process Ethernet II, TCP, and UDP packets, displaying relevant information about each packet.
- C++11 or later
- libtins
-
Clone the repository:
git clone https://github.com/Maksikos-ctrl/TrafficAnalyzer.git
-
Navigate to the project directory:
cd TrafficAnalyzer
-
Build the executable:
make
-
Run the program (requires sudo for network access):
sudo ./packet_sniffer
The program listens to network traffic on the specified interface and processes packets based on their types (Ethernet II, TCP, UDP). The processed information is displayed on the console.
The program processes packets based on their type:
- Ethernet II: Displays source and destination MAC addresses.
- TCP: Displays source and destination IP addresses and ports.
- UDP: Displays source and destination IP addresses and ports.
- Fork the repository.
- Create a new branch:
git checkout -b feature/new-feature
. - Make your changes and commit them:
git commit -m 'Add a new feature'
. - Push to the branch:
git push origin feature/new-feature
. - Submit a pull request.
This project is licensed under the ANSYS License - see the LICENSE file for details.