Pcapy and dpkt - tcpdump on steroids
summary
Uses Python plus pcapy and dpkt to move beyond raw tcpdump output by setting a libpcap filter, attaching a callback, and handing each packet to protocol parsers. Shows runnable code that listens on interface 0, filters UDP port 53, extracts DNS name and query type, and writes records to a database. Demonstrates producing top 7 DNS queries from captured traffic, notes that pcapy is libpcap-compatible, and that the approach reliably builds useful application‑layer aggregates.
AI-written summary · about
chapters (4)
related talks
31mwww.yougottalovefrontend.com
38mPacket Capture the Flag
30mPython and cffi Visualizing Network Traces
39mAutomating BIG-IP Packet Captures
05mHow to Analyse a DDoS Quackly
17mMonitoring DNS with Open-Source Solutions
24mDeep Network Traffic Observability with Pktvisor and Prometheus
46mCurio Collection of Web Protocols
