0.0.5 • Published 8 years ago

arp-dash v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

arp-dash

A hack for the Amazon dash button to execute JavaScript when pressed. Utilizes windump to listen for certain requests made by the Amazon dash button. Has only been tested on Windows machines.

Dependencies

Installation

npm install arp-dash -g

Usage

var arpdash = require("arp-dash");

// Print all available interfaces
arpdash.list();

// Listen on a particular interface by number
arpdash.scan(interface);

var opts = {
  interface: 4,
  mac: "xx:xx:xx:xx:xx:xx" //captured by scan function
};

// Listen on interface and mac address of device
arpdash.listen(opts, function() {
  //callback function to execute
  console.log("You pressed the button.");
});

CLI

List available interfaces

arpdash list

Scan for dash button on specific interface

arpdash scan -i <interface>

Listen for a specific device on interface

arpdash listen -i <interface> -m <macAddress>