O'Reilly logo

Python Passive Network Mapping by Chet Hosmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3

Capturing Network Packets Using Python

Abstract

This chapter examines the rules of thumb necessary to setup a packet capture environment. In addition, I cover considerations for information capture, Python data type selection for observation storage along with the creation of classes for handling data storage, and retrieval of packet contents. Finally, the P2NMAP capture script is completed and ready for use to passively capture TCP and UDP packets.

Keywords

Packet Capture
TCP
UDP
Dictionary
Tuples
Signaling
Class
ServerIP
ClientIP
Port
Smart Switch
Monitoring
SYN
TOS
DF
TTL
WindowSize
promiscuous mode

“We are drowning in information, but starved for knowledge”

John Naisbitt

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required