Tag Archives: Scapy

Python Thread-Based Network Sniffing with Scapy

Thread-based packet analysis is valuable when capturing a packet and understanding it require different amounts of work. Scapy can decode DNS, IP, TCP, and many other protocols, but printing or writing each packet directly inside the capture callback can make an otherwise simple monitoring program sluggish. The solution is not to launch more sniffers indiscriminately.… Read More »

Capturing Network Traffic in Threads Using Scapy and Python

Network packet capture is useful only when an analyst understands what was captured, why those packets were in scope, and how the capture ends. Python and Scapy make protocol experiments approachable, but a background capture that cannot be stopped or that silently consumes all available memory is a poor monitoring tool. A controlled capture should… Read More »

img