Skip to content

Instantly share code, notes, and snippets.

View MJGTwo's full-sized avatar
🔧
🤖💤💭⚡🐑

Michael Gardner MJGTwo

🔧
🤖💤💭⚡🐑
View GitHub Profile
@MJGTwo
MJGTwo / dash-listen-1.py
Last active November 2, 2015 16:23 — forked from eob/dash-listen-1.py
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)#Surpress's small errors from Scapy
from scapy.all import *
def arp_display(pkt):
if pkt.haslayer(ARP): #makes sure it is ARP
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