Skip to content

Harsh2k7/Basic-Network-sniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ•΅οΈβ€β™‚οΈ Basic Network Sniffer in Python

This project is a basic network packet sniffer written in Python using the scapy library. It captures live packets and displays:

  • Source and destination IP addresses
  • Protocol (TCP/UDP)
  • Payload data (first 50 bytes)

πŸ“¦ Requirements

  • Python 3
  • scapy

βš™οΈ Installation

pip install -r requirements.txt

πŸš€ Usage

Run the sniffer with:

sudo python3 basic_sniffer.py

πŸ“₯ Output Example

[+] 192.168.1.5 -> 142.250.195.174 | Protocol: TCP
    Payload: b'GET /search?q=sniffer HTTP/1.1\r\nHost:...'

πŸ›  Tools Used

  • Python
  • Scapy library

About

A basic Python-based network packet sniffer built using Scapy. Captures and analyzes live network traffic to display IPs, protocols, and payload data.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages