Skip to Content
Python for Security and Networking - Third Edition
book

Python for Security and Networking - Third Edition

by José Manuel Ortega
June 2023
Intermediate to advanced
586 pages
12h 35m
English
Packt Publishing
Content preview from Python for Security and Networking - Third Edition

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Python for Networking and Security - Second Edition

Mastering Python for Networking and Security - Second Edition

José Manuel Ortega
Python for Cybersecurity

Python for Cybersecurity

Howard E. Poston, III

Publisher Resources

ISBN: 9781837637553Supplemental Content