candyger.blogg.se

Python packet sniffer
Python packet sniffer









python packet sniffer

If impelmented as an assignment, I recommend that students be given a week to complete it. This is an intermediate assignment, currently implemented in my course as a 2-hour lab. Python topics: string parsing and lists and dictionaries. Use the Scapy package to analyze packets stored in a PCAP file. Packet Sniffing in Python -After a discussion of how information is transferred across wireless vs wired networks and the legality/ethics of wireless packet sniffing, students write Python code (mostly simple string matching and lists manipulation) to extract and inspect information from a packet capture file that was created artificially in a sandboxed network.Ĭompare and contrast how information is sent in a wired vs a wireless network. Students only need basic Python parsing skills (string, lists) to analyze the packet capture files. This includes passwords, potential occupations, e-mail contents, and other sensitive topics. The end goal is for the students to discover as much information they can about the four individuals whose packets were sniffed.

python packet sniffer

The PCAP file purportedly contains the packets of four individuals working in a coffee shop. This assignment (orginally organized as a lab) highlights the the real-world dangers of packet-sniffing by enabling students to analyze a packet capture (PCAP) file using the Scapy package in Python. As such, packet sniffing unsecured wireless networks is still very much a legal gray area. These laws were written during a time before wireless networks were easily available for commercial purpose. 119 of title 18) is very explicit about unauthorized wiretapping, the law was written in such a manner to enable gathering information "made through an electronic communication system that is configured so that such electronic configuration is readily accessible to the general public". Many people use free wifi hotspots to access information on the go, whether at coffee shops, hotels, or airports. Unsecured wireless networks are ubiquitous to modern society.

python packet sniffer

United States Military Academy - West Point Packet Sniffing in Python (CS1) Packet Sniffing in Python (CS1)ĭepartment of Electrical Engineering & Computer Science











Python packet sniffer