Skip to content

A Traffic Analyzer project with a rapberry pi and external monitoring wifi card (ALFA), created for education ONLY: Real-Time Packet Capture, Filtering, Packet Details View, Packet Search, Protocol Analysis,Traffic Graphs, Alerts, Packet Export.

Notifications You must be signed in to change notification settings

Daniel-Grounin/Raspberry-Pi-Network-Traffic-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi Traffic Analyzer

Overview

The Raspberry Pi Traffic Analyzer is a network traffic monitoring tool designed to capture and analyze network packets on a Raspberry Pi device. This tool leverages Scapy for packet sniffing and PyQt6 for the user interface. It provides real-time packet statistics, network traffic analysis, and supports different network interfaces.

Features

  • Packet Sniffing: Capture packets from various network interfaces.
  • Traffic Monitoring: Real-time visualization of packet rate and data throughput.
  • User Interface: A graphical interface built with PyQt6 for easy access to network data.
  • Cross-Platform Support: Works on Kali Linux and other compatible systems like windows (if npcap is cofigured).

Installation

Prerequisites

  1. Kali Linux installed on your Raspberry Pi.
  2. Python 3 and pip3 installed.
  3. Network interface: Ethernet or Wi-Fi connection for packet sniffing.

Setup

  1. Update The OS:

    sudo apt update && sudo apt upgrade -y
  2. Install dependencies:

    sudo apt install python3 python3-pip libpcap-dev
    pip3 install scapy pyqt6
  3. Clone the repository:

    git clone https://github.com/yourusername/raspberry-pi-traffic-analyzer.git
    cd raspberry-pi-traffic-analyzer
  4. Run the Analyzer:

    python3 main.py
    • Ensure you have the correct network interface name (e.g., eth0, wlan0) set in the script.

Usage

Once the tool is running, it will display the following real-time information:

  • Packet Rate (Packets/sec): Tracks the rate of incoming and outgoing network packets.
  • Data Throughput (Bytes/sec): Displays the data transfer rate of the network.

Configuration

You can modify the network interface to analyze by changing the iface variable in main.py to your desired interface (e.g., wlan0 or eth0).

Example:

iface = "wlan0"  # Replace with your network interface

About

A Traffic Analyzer project with a rapberry pi and external monitoring wifi card (ALFA), created for education ONLY: Real-Time Packet Capture, Filtering, Packet Details View, Packet Search, Protocol Analysis,Traffic Graphs, Alerts, Packet Export.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages