Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sir-ragna/packetsniffer
Packet sniffer (rfc 791)
https://github.com/sir-ragna/packetsniffer
Last synced: about 2 months ago
JSON representation
Packet sniffer (rfc 791)
- Host: GitHub
- URL: https://github.com/sir-ragna/packetsniffer
- Owner: sir-ragna
- Created: 2015-05-07T16:58:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-06T20:42:46.000Z (over 9 years ago)
- Last Synced: 2023-04-04T02:26:36.932Z (almost 2 years ago)
- Language: Python
- Size: 203 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# packet sniffer #
Bare bones but functional.
sudo python ethernetsniffer.py
## Linux only ##
I don't know the cross platform equivalent for `socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.ntohs(0x0003))`.
If you do know the equivalent for other operating systems please let me know.I only know it isn't possible on Windows without third party drivers like PCAP.
Might look into PCAP later.## implemented ##
- ethernet
- IPv4
- UDP
- DHCP (partially)## goal ##
Learn how TCP/IP works and can be implemented.