Scapy not picking up a single ARP request
<p>I have the following running (finally after installing libnet etc) on my Mac trying to listen for a Dash button's MAC address:</p>

<pre><code>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=300))
</code></pre>

<p>However, this just runs indefinitely and nothing is picked up even after numerous presses on the Dash and many other devices connecting and disconnecting.</p>

<p>I tried the following too</p>

<pre><code>from scapy.all import *

print (sniff(filter="arp",count=10).summary())
</code></pre>

<p>Which also yields no results. Nothing I find online tells me what might be causing this.</p>

<p>Any ideas? Or even how I could debug?</p>

<p>The new buttons don't put out the same ARP request as the old ones. Remove this line and it should work.</p>

<pre><code>if pkt[ARP].psrc == '0.0.0.0': # ARP Probe
</code></pre>

python networking iot scapy hacking