Skip to content

Instantly share code, notes, and snippets.

@garethpaul
Last active December 8, 2015 05:40
Show Gist options
  • Save garethpaul/d897b9dd23e5ac9e99d9 to your computer and use it in GitHub Desktop.
Save garethpaul/d897b9dd23e5ac9e99d9 to your computer and use it in GitHub Desktop.
arp_probe.py
from scapy.all import *
def arp_display(pkt):
if pkt[ARP].op == 1: #who-has (request)
print "Request from " + pkt[ARP].hwsrc
print sniff(prn=arp_display, filter="arp", store=0, count=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment