Skip to content

Instantly share code, notes, and snippets.

@gmelnik
Forked from eob/dash-listen-1.py
Created July 28, 2016 02:43
Show Gist options
  • Save gmelnik/22a1cdb7a9e5bafd8277ba140551e147 to your computer and use it in GitHub Desktop.
Save gmelnik/22a1cdb7a9e5bafd8277ba140551e147 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