Skip to content

Instantly share code, notes, and snippets.

Avatar
🐝
hacking on things at Berkman <3

Griffin Boyce glamrock

🐝
hacking on things at Berkman <3
View GitHub Profile
@glamrock
glamrock / data_brokers.txt
Created Dec 5, 2016
A simply complicated guide to removing your info from data brokers
View data_brokers.txt
I've compiled a list of data
aggregators, data brokers, direct marketing firms, and others who trade
personal data. Many of these are very quickly dealt with via web forms,
but others require a letter and a copy of a photo ID. Many of the data
brokers came from my notes, but others have come from Reddit threads,
and stopdatamining.me. All sources were fairly out of date, so I've gone
through and listed the current contact info and process for each. Feel
free to pass it along and let me know if there are any errors or
omissions. ^_^
@glamrock
glamrock / cf-detect.sh
Last active Apr 10, 2022
List of sites within top 100k that use CloudFlare (updated 4/19/16)
View cf-detect.sh
#!/bin/bash
# Cloudflare namesever detector
# takes top sites from Alexa and outputs matching sites to a file
# Please note that for 100k sites, this takes hours and hours
readarray -t array < sites-1.txt
cf="cloudflare.com"
for i in "${array[@]}"
@glamrock
glamrock / torrc_options
Created Aug 25, 2014
All valid torrc options
View torrc_options
yahtzee@fagballs:~# tor --list-torrc-options
Aug 24 22:16:31.701 [notice] Tor v0.2.4.20 (git-0d50b03673670de6) running on Linux with Libevent 2.0.21-stable and OpenSSL 1.0.1f.
Aug 24 22:16:31.701 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
AccountingMax
AccountingStart
Address
AllowDotExit
AllowInvalidNodes
AllowNonRFC953Hostnames
AllowSingleHopCircuits
@glamrock
glamrock / rrd_exporter.sh
Last active Jun 23, 2020
Ganglia rrd export / import
View rrd_exporter.sh
#! /bin/bash -xe
# Note: run from /var/lib/ganglia directory, no need for subdir
# Run with: find /var/lib/ganglia/rrds/ -type d -exec sh -c 'cd "{}" ; /var/lib/ganglia/rrd_exporter.sh ;' \;
# backup current rrd files -- tar all and place in /tmp
tar --exclude='*.xml' -cvf /tmp/rrds-"$(date --date='now' +%F-%R)".tar rrds/*
echo "Backed up files in /tmp"
#Pull in rrd files one at a time
for i in *.rrd
View netgear_upnp_csrf.rb
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpServer::HTML
def initialize(info = {})
super(update_info(info,
'Name' => 'NetGear UPnP CSRF',
View gist:01ff6d601c72e9367daa95210f6b2432
"i don't believe in the devil / he don't believe in me neither / we got something in common / we're non believers"
View gist:da78be919ded11bcb799b2af111b7526
def insert_comma(mystring, position):
mystring[:position] + ',' + mystring[position:]
offset = 0
for magic_number in magic_numbers:
position = magic_number + offset
mystring = insert_comma(mystring, position)
offset += 1
@glamrock
glamrock / RETA-2000example.dat
Created Oct 22, 2018
One RETA entry from 2000
View RETA-2000example.dat
117LANPD001C7004348817Y 0812823530121000484674036598000000000 000000000 0004658280000000000000000002Y0NNEW ORLEANS LA CHIEF OF POLICE RECORDS & IDENTIFICATION 715 SOUTH BROAD STREET NEW ORLEANS, LA 701191170E1 0008300022222PPPP0000000000000030000200001000010000100000000000000000001000000000000000000000000100000000000000000000000010000000000000000000000006000000000000010000000002200021000010022600140000140001300059001910008500045000490000000012003840030300059000220140300571003800012500066028070000000000000050000000009000090000000071000410000000008000220017000063000430005300000000110007300056000160000100388000690005500010000040078500000000000000000000000000000000000000090000100000000020000600016000050000400004000000000300010000090000100000000470001600010000030000300098000000000000000000000210008300055555PPPP0000000000000030000300000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000
@glamrock
glamrock / mysql-mirror.sh
Created May 9, 2018 — forked from peta/mysql-mirror.sh
Simple bash script for migrating MySQL databases (including all associated user accounts) to a remote server. Use it with care because the usage of mysqldump in this script solely relies on default values which may vary greatly on your machine. (mysqldump is a powerful tool, so don't miss `man mysqldump`).
View mysql-mirror.sh
#!/bin/bash
# Copyright (c) 2005 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# Source: http://www.cyberciti.biz/tips/move-mysql-users-privileges-grants-from-one-host-to-new-host.html
# Author Vivek Gite <vivek@nixcraft.com>,
# Peter Geil <code@petergeil.name>
# ------------------------------------------------------------
# SETME First - local mysql user/pass
_lusr="src-db-user"
_lpass="src-db-pw"
@glamrock
glamrock / .vimrc
Created Jun 19, 2017 — forked from assaf/.vimrc
.vimrc
View .vimrc
version 7.0
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
let &cpo=s:cpo_save
unlet s:cpo_save
set cscopeprg=/usr/bin/cscope
set cscopetag
set cscopeverbose
set fileencodings=utf-8,latin1