Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 1.26 KB

README.md

File metadata and controls

28 lines (24 loc) · 1.26 KB

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.