1 2 3 4 5 6 7
from scapy.all import * # fonction callback def packet_capture(pkt): print(pkt[IP].src, "->",pkt[IP].dst) sniff(prn=packet_capture, filter="ip", count=10)