Skip to content

Instantly share code, notes, and snippets.

@askldjd
Created November 11, 2015 17:13
Show Gist options
  • Save askldjd/865135369dc3939d7be8 to your computer and use it in GitHub Desktop.
Save askldjd/865135369dc3939d7be8 to your computer and use it in GitHub Desktop.
from scapy.all import *
def pkt_callback(pkt):
pkt.show() # debug statement
sniff(iface="eth0",
prn=pkt_callback, filter="ip", store=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment