8000 GitHub - hsiang086/trafficpp
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hsiang086/trafficpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trafficpp

Trafficpp is a simple and lightweight network traffic sniffer built using C++ and libpcap. It captures and analyzes network packets, providing detailed information about Ethernet, IP, and TCP headers.

Features

  • Network Traffic Sniffing:
    • Capture and analyze network packets.
  • Packet Information:
    • Ethernet, IP, and TCP headers.
  • Packet Filtering:
    • Filter packets based on IP address, port number, and protocol.
  • Packet Logging:
    • Log packet information to a file.

Installation

Prerequisites

  • CMake
    • Install CMake on MacOS:
      brew install cmake
    • Install CMake on Ubuntu:
      sudo apt-get install cmake
    • Install CMake on Fedora:
      sudo dnf install cmake
  • libpcap library
    • Install libpcap on MacOS:
      brew install libpcap
    • Install libpcap on Ubuntu:
      sudo apt-get install libpcap-dev
    • Install libpcap on Fedora:
      sudo dnf install libpcap-devel

Build

git clone https://github.com/hsiang086/trafficpp.git
cd traffcpp
mkdir build && cd build && cmake ..
make

Usage

sudo ./bin/setpermission.sh
./bin/Traffcpp [options]
  • --help or -h: Display help message.
  • --run or -r: Start capturing network packets.
  • --version or -v: Display version information.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0