diff --git a/dash-listen.py b/dash-listen.py new file mode 100644 index 0000000..af6ba60 --- /dev/null +++ b/dash-listen.py @@ -0,0 +1,13 @@ +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) + +# sudo apt-get install python-scapy tcpdump tcpreplay wireshark + +# Note that wireshark prompts during installation if non-root users +# should be allowed to perform packed capture.