5
Analyzing Network Traffic and Packet Sniffing
This chapter will introduce you to some of the basics of analyzing network traffic using the pcapy-ng and scapy modules in Python. These modules provide you with the ability to write small Python scripts that can understand network traffic. Scapy is a network packet manipulation tool written in Python that can forge or decode packets, forward packets, capture packets, and match requests and responses.
The following topics will be covered in this chapter:
- Understanding the pcapy-ng module to capture and inject packets on the network.
- Exploring the scapy module to capture, analyze, manipulate and inject network packets.
- Implementing the scapy module for network port scanning.
- Using the scapy module ...
Get Python for Security and Networking - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.