Did you know Cybrary's video training is FREE? Join more than 2,500,000 IT and cyber security professionals, students, career changers, and more, growing their careers on Cybrary.
Writing a Packet Sniffer in Python This lesson focuses on writing a packet sniffer in Python. Participants learn step by step instructions in writing a short Python script (fewer than 200 lines) and it is something that can be easily expanded as needed. A packet sniffer in Python is an important tool to have because they tend to be pretty large tools such as Wireshark, they are complex and take a lot of getting used to. To write a packet sniffer; first you need to determine the three levels for the raw sockets: - IP_family
Knowing these allow you write and read the headers. This lab-based lesson allows participants to follow along with the instructor as he programs with the instructor, allowing them to practice their Python programming skills and gain the skills needed to write a sniffer listen to every port and pick up every bit of traffic it receives.