Packet Analyzer – Writing a Packet Sniffer in Python

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
  • Protocol
  • Ethernet
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.
Learn on the go.
The app designed for the modern cyber security professional.
Get it on Google Play Get it on the App Store

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Cybrary On The Go

Get the Cybrary app for Android for online and offline viewing of our lessons.

Get it on Google Play

Support Cybrary

Donate Here to Get This Month's Donor Badge

Skip to toolbar

We recommend always using caution when following any link

Are you sure you want to continue?