-
Notifications
You must be signed in to change notification settings - Fork 42k
Open
Description
Ethernet Frame Analyzer in Python
I made a basic Ethernet frame analyzer written in Python.
It uses a raw socket to capture one Ethernet frame directly from the network interface card (NIC), then parses and displays the frame’s header and payload.
This project demonstrates how low-level frame capture works at the Data Link Layer (Layer 2) in the OSI model.
Parses and prints:
- Destination MAC address
- Source MAC address
- EtherType (e.g., IPv4, ARP, IPv6)
- Paload size (in bytes)
- Payload data (in hexadecimal)
What We Learned:
- How to use Python’s raw sockets to access Ethernet frames
- The structure of an Ethernet Type 2 Frame
- How to parse binary data into readable form
- The meaning of MAC addresses of Ether Types
Project Links
Raw Ethernet Frame Analyzer Tutorial
Raw Ethernet Frame Analyzer GitHub Repo
Metadata
Metadata
Assignees
Labels
No labels