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:
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
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: