- This work aims at capturing all the ethrnet packets in a network using python Raw Sockets.
- The captured packets are parsed and their Ethernet, IP ,TCP ,UDP Headers are printed
- This packet sniffer can be exteded for other protocols as well.
- Step 1 : Capture packets in LAN network using python Raw Sockets
- Step 2 : Parse Ethernet Header and identify the protocol used
- Step 3 : If the prtocol is IP, parse IP header to identify the next protocol
- Step 4 : The data is further parsed if the identified protocol is either TCP or UDP.
- Language: Python
- Interpreter: 2.x or 3.x
python packetSniffer.py
- Etheret Header
- IP Header
- TCP Header
- UDP Header
- Cybrary
- Python Struct Module
- Python Socket Module
- Python binascii Module