Skip to content

Instantly share code, notes, and snippets.

View glamrock's full-sized avatar
🐝
hacking on things at Berkman <3

Griffin Boyce glamrock

🐝
hacking on things at Berkman <3
View GitHub Profile
@glamrock
glamrock / cf-ns3.txt
Last active May 1, 2024 09:39
CF nameservers
ABBY.NS.CLOUDFLARE.COM
ADEL.NS.CLOUDFLARE.COM
ADI.NS.CLOUDFLARE.COM
AHLIA.NS.CLOUDFLARE.COM
ALI.NS.CLOUDFLARE.COM
ALICE.NS.CLOUDFLARE.COM
ALINA.NS.CLOUDFLARE.COM
AMANDA.NS.CLOUDFLARE.COM
AMY.NS.CLOUDFLARE.COM
ANNA.NS.CLOUDFLARE.COM
@glamrock
glamrock / data_brokers.txt
Created December 5, 2016 20:40
A simply complicated guide to removing your info from data brokers
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 / torrc_options
Created August 25, 2014 02:17
All valid 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 / cf-detect.sh
Last active April 10, 2022 21:05
List of sites within top 100k that use CloudFlare (updated 4/19/16)
#!/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 / rrd_exporter.sh
Last active June 23, 2020 10:25
Ganglia rrd export / import
#! /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
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',
"i don't believe in the devil / he don't believe in me neither / we got something in common / we're non believers"
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 October 22, 2018 16:08
One RETA entry from 2000
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 20:09 — 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`).
#!/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"