Skip to content

Instantly share code, notes, and snippets.

View dropmeaword's full-sized avatar

Luis Rodil-Fernandez dropmeaword

  • Amsterdam, Netherlands
View GitHub Profile

GL-iNet pocket router

The following steps will help you configure a GL-iNet router running a version of linux called OpenWRT so that you can do real-time WiFi Probe Request capture. By using multiple of these GL-iNet devices you can easily create a perimeter for WiFi tracking.

create destination on the usb drive

mkdir /mnt/sda1/packages
echo dest usb /mnt/sda1/packages/ >> /etc/opkg.conf

Filesystem

Learn more about probes

Vid explaining the gist of it

Setting your macbook in monitor mode

Create a symlink to the airport tool:

sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport

airport

// nRF24 wiring.
// CE -> 9
// SS -> 10
// MOSI -> 11
// MISO -> 12
// SCK -> 13
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
@dropmeaword
dropmeaword / barchart.py
Last active September 10, 2015 07:46
Getting market data from barchart
# luis rodil-fernandez & hrvoje hirsl
import requests
import json
import urllib
from datetime import date
API_KEY = "93a7e50ea20390edd76b6f9a5de74570"
BASE_URL = "http://marketdata.websol.barchart.com/getHistory.json?"
def get_daily(ticker, params=None):
#!/bin/bash
find . -type -f -name \*.php |while read FILE ; do
echo -e '\nvim: set softtabstop=4 tabstop=4 shiftwidth=4 textwidth=79 expandtab wrap lbr nolist:' >>$FILE
done
@dropmeaword
dropmeaword / match_using_regex.pde
Last active October 7, 2015 15:37
IDArnhem: Sample for Arthur
void callMeAnythingYouLike(String []match) {
println("Found '" + match[1] + "' match.");
}
void setup() {
String s = "Arthur is a @King's name@, you will find @belly button@, and @candy@.";
@dropmeaword
dropmeaword / buzzer.ino
Last active October 7, 2015 15:37 — forked from anonymous/gist:02d9511dda8c4a2a7227
IDArnhem: This code must be loaded in the Arduino and it runs the buzzer.
/**
* This little program runs in the Arduino, one that is plugged
* to a computer with a USB cable. This cable will be our "serial"
* connection. In the computer we will run the P5 sketch that will
* tell the Arduino through "serial" when to do its thing.
*
* 1. Load this program into your Arduino.
* 2. Load the Processing sketch, change the "serial port" in the P5 code to point to the correct Arduino.
* 3. Run the processing sketch.
* 4. Buzzzzzz
@dropmeaword
dropmeaword / arduino_buzz.pde
Last active October 7, 2015 15:36
IDArnhem: This code runs in Processing from your laptop and communicates with the Arduino using the serial protocol.
import processing.serial.*;
int DATA_RATE = 9600; // must be the same as the datarate that the Arduino is using
Serial serial;
void setup()
{
size(200, 200);
// the ard variable must be = to the location of your Arduino
@dropmeaword
dropmeaword / macspoof.sh
Created October 7, 2015 19:58
MAC address spoofing for OSX, handy in airports
#!/bin/sh
# for OSX only
# note that your MAC address will go back to its factory setting after you reboot
# make sure this script is run by root only
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root"
exit 1
fi
@dropmeaword
dropmeaword / browser_history.md
Last active August 18, 2025 15:34
Playing around with Chrome's history

Browser histories

Unless you are using Safari on OSX, most browsers will have some kind of free plugin that you can use to export the browser's history. So that's probably the easiest way. The harder way, which seems to be what Safari wants is a bit more hacky but it will also work for other browsers. Turns out that most of them, including Safari, have their history saved in some kind of sqlite database file somewhere in your home directory.

The OSX Finder cheats a little bit and doesn't show us all the files that actually exist on our drive. It tries to protect us from ourselves by hiding some system and application-specific files. You can work around this by either using the terminal (my preferred method) or by using the Cmd+Shft+G in Finder.

Finder

Once you locate the file containing the browser's history, copy it to make a backup just in case we screw up.