What's new

Need python scapy library?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Rudi Pittman

Occasional Visitor
I'm trying to hack an amazon dash button to control some home automation products. The first step is to run a script on the router to listen for arp requests to identify the dash button and it's mac id. The code for this is as follows:

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=10)

Even after installing both entware and python the "scapy" library is not available and I know of no way to add it. The full instructions for the hack are available here: https://community.smartthings.com/t...-button-to-control-a-smartthings-switch/20427

admin@RT-AC68U-3688:/tmp/mnt/Main/scripts# python ./listen.py
Traceback (most recent call last):
File "./listen.py", line 1, in <module>
from scapy.all import *
ImportError: No module named scapy.all
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top