Skip to content

A packet sniffer written in Python for sniffing and analyzing network packets, providing detailed insights into Ethernet frames, IPv4, and IPv6 protocols, as well as handling ICMP, TCP, and UDP traffic.

License

Notifications You must be signed in to change notification settings

MayureshJoshi25/Packet-Sniffer-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Packet-Sniffer-Python

A packet sniffer written in Python for sniffing and analyzing network packets, providing detailed insights into Ethernet frames, IPv4, and IPv6 protocols, as well as handling ICMP, TCP, and UDP traffic.

Features

  • Captures and analyzes network packets in real-time.
  • Supports Ethernet frames, IPv4, and IPv6 protocols.
  • Provides detailed insights into ICMP, TCP, and UDP traffic.
  • User-friendly interface for displaying packet information.

Usage

  • Ensure you have Python 3.5 or higher installed on your system.
  • Run the script using the command python3 <script_name.py>.
  • Optionally, specify a protocol filter (e.g., ICMP, TCP, UDP) as a command-line argument to capture packets of specific types.
python3 script.py [protocol]

protocol: (Optional) The protocol filter to apply. You can specify one of the following protocols: ICMP: Internet Control Message Protocol TCP: Transmission Control Protocol UDP: User Datagram Protocol

  • View the captured packet information in the console output.

Requirements

  • Python 3.5 or higher
  • Standard Python libraries (socket, struct, textwrap, binascii)

Disclaimer

This script is intended for educational purposes only. Use it responsibly and only on networks you have permission to monitor.

About

A packet sniffer written in Python for sniffing and analyzing network packets, providing detailed insights into Ethernet frames, IPv4, and IPv6 protocols, as well as handling ICMP, TCP, and UDP traffic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages