Difference between revisions of "User:Omegix/Notes/Amazon Dash Button"

From Makers Local 256
Jump to: navigation, search
(adding notes on deprecated dash buttons)
 
(Overview: adding setup notes)
Line 11: Line 11:
 
* General notes.  If the button connects back to the internet, it will call home, and amazon will update it with a firmware that will brick the button.  It is necessary to block the dash button by mac address at the router level.  This will not prevent arp notifications of the device attempting to connect to the router, which is all we need to get a simple presence detection on the network.
 
* General notes.  If the button connects back to the internet, it will call home, and amazon will update it with a firmware that will brick the button.  It is necessary to block the dash button by mac address at the router level.  This will not prevent arp notifications of the device attempting to connect to the router, which is all we need to get a simple presence detection on the network.
  
 +
== Sniff Network for SSID probes ==
 +
=== Raspberry Pi Setup ===
 +
# Add latest repo to pi for Kismet.  The default Kismet repo that the Pi has will install a version of Kismet whose log outputs are inaccessible until the Kismet application closes.
  
 +
==== Tasks to Complete  ====
 +
* * Kismet to write to txt file during runtime
 +
* Specify Log File name and location
 +
* Continuously grep file
 +
* awk the lines surrounding the grep to see if the SSID matches the SSID probed for by the button
 +
* Clear log file without crashing kismet after a condition is met
 +
* call another script (maybe an IFTTT script?) when condition is met
  
 +
 +
tail -f /location/of/thefile | grep -i -E "foo|bar"
 +
 +
sudo kismet logging_enabled=true log_prefix=/tmp/kismet log_types=kismet log_title=KismetJeff -c wlan0
  
 
[[Category:IoT]]                                                  <!--MAKE AS MANY CATEGORIES AS YOU NEED-->
 
[[Category:IoT]]                                                  <!--MAKE AS MANY CATEGORIES AS YOU NEED-->

Revision as of 16:31, 24 October 2020

Creator:
Omegix
Status:
Brainstorming
Born On:
10:24, 24 October 2020 (CDT)
Last Updated:
16:31, 24 October 2020 (CDT)

Overview

Notes for how to rescue and setup deprecated amazon dash buttons.

Sniff Network for SSID probes

Raspberry Pi Setup

  1. Add latest repo to pi for Kismet. The default Kismet repo that the Pi has will install a version of Kismet whose log outputs are inaccessible until the Kismet application closes.

Tasks to Complete

  • * Kismet to write to txt file during runtime
  • Specify Log File name and location
  • Continuously grep file
  • awk the lines surrounding the grep to see if the SSID matches the SSID probed for by the button
  • Clear log file without crashing kismet after a condition is met
  • call another script (maybe an IFTTT script?) when condition is met


tail -f /location/of/thefile | grep -i -E "foo|bar"

sudo kismet logging_enabled=true log_prefix=/tmp/kismet log_types=kismet log_title=KismetJeff -c wlan0