Skip to content

Instantly share code, notes, and snippets.

@eob
Created August 9, 2015 09:29
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
  • Save eob/a8b5632f23e75b311df2 to your computer and use it in GitHub Desktop.
Save eob/a8b5632f23e75b311df2 to your computer and use it in GitHub Desktop.
from scapy.all import *
def arp_display(pkt):
if pkt[ARP].op == 1: #who-has (request)
if pkt[ARP].psrc == '0.0.0.0': # ARP Probe
print "ARP Probe from: " + pkt[ARP].hwsrc
print sniff(prn=arp_display, filter="arp", store=0, count=10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment