Skip to content

Instantly share code, notes, and snippets.

@vamsijakkula
Forked from eob/dash-listen-1.py
Created May 28, 2016 08:41
Show Gist options
  • Save vamsijakkula/bc6c52ecfebe8600706e9aadea804d40 to your computer and use it in GitHub Desktop.
Save vamsijakkula/bc6c52ecfebe8600706e9aadea804d40 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