Skip to content

Instantly share code, notes, and snippets.

View LoranKloeze's full-sized avatar

Loran Kloeze LoranKloeze

View GitHub Profile
@LoranKloeze
LoranKloeze / probe_requests_to_sqlite3.py
Last active January 9, 2020 21:47
This script grabs 802.11 probe requests from the air and puts them in a sqlite3-db
#!/usr/bin/env python2.7
# 802.11 probe requests processor
# Copyright (C) 2017 Ralon cybersecurity
# Loran Kloeze - loran@ralon.nl - @lorankloeze
# MIT license: do with it what you want but use it for good
#
# This script grabs probe requests from the air and puts them in a sqlite3-db.
# It cleans up the database to prevent old entries from filling up too much disk
# space. Check the regex before starting this script because it assumes 3
# antennas on the wireless device.
@LoranKloeze
LoranKloeze / political_party_websites_vs_foreign_requests.py
Created May 6, 2019 19:46
To which external domains does a given Dutch politcal website connect?
# Copyright 2019 - https://www.twitter.com/LoranKloeze
# License: MIT
#
# This script was used for collecting the data for this Dutch article:
# https://www.lorankloeze.nl/2019/05/06/vreemde-communicatie-websites-politieke-partijen/
#
# Parse HAR files and print a table containg websites of Dutch political parties versus foreign requests
# This script answers the following question: 'To which external domains does a given website connect?'
#
# All HAR files are expected to contain the information provided by Google Chrome using the following workflow:
@LoranKloeze
LoranKloeze / stemwijzer.py
Created February 7, 2017 00:47
Script om stemwijzer resultaten te pretty printen
#!/usr/bin/env python3.5
import subprocess
from prettytable import PrettyTable
import json
import time
print("Gegevens ophalen...")
party_ids = ['x'] * 2000
party_ids[1078] = 'VVD'
party_ids[1079] = 'PvdA'