Skip to content

Instantly share code, notes, and snippets.

View Miserlou's full-sized avatar

Rich Jones Miserlou

View GitHub Profile
@Miserlou
Miserlou / google_domains.txt
Created August 13, 2014 22:32
List of Google and Google Owned Domains - August 2014, Sorted
1e100.net
7sou.com
3576.net
21150.com
95539.com
466453.com
38389438.com
admob.com
adsense.com
adsense.net
import requests
r = requests.get('https://gun.io')
print r.content
@Miserlou
Miserlou / gist:11500b2345d3fe850c92
Created April 27, 2015 21:20
1000 Largest US Cities By Population
Largest 1000 Cities in America
2013 popuation data - Biggest US Cities By Population
rank,city,state,population,2000-2013 growth
1,New York,New York,8405837,4.8%
2,Los Angeles,California,3884307,4.8%
3,Chicago,Illinois,2718782,-6.1%
4,Houston,Texas,2195914,11.0%
5,Philadelphia,Pennsylvania,1553165,2.6%
@Miserlou
Miserlou / cities.json
Created April 30, 2015 06:58
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
@Miserlou
Miserlou / disposable_email_domains.py
Created May 22, 2015 21:44
disposable_email_domains.py
disposable_email_domains = ['0815.ru',
'6ip.us',
'10minutemail.co.za',
'10minutemail.com',
'33mail.com',
'armyspy.com',
'binkmail.com',
'binkmail.com',
'bobmail.info',
'bobmail.info',
@Miserlou
Miserlou / who.py
Created June 22, 2015 05:14
Remove that annoying disclaimer noice from the whois command
#! /usr/bin/env python
from subprocess import Popen, PIPE
import sys
domain = sys.argv[1]
proc = Popen(["whois", domain], stdout=PIPE)
output = proc.communicate()[0]
notice_loc = output.find('NOTICE')
@Miserlou
Miserlou / new_key.sh
Last active May 14, 2024 02:23
Generate a new Django SECRET_KEY
python -c 'import random; import string; print "".join([random.SystemRandom().choice(string.digits + string.letters + "!#$%&\()*+,-./:;<=>?@[]^_{|}~" ) for i in range(100)])'
@Miserlou
Miserlou / CVE-2015-5889.py
Created February 5, 2016 15:41
CVE-2015-5889: issetugid() + rsh + libmalloc OSX local root by rebel
# CVE-2015-5889: issetugid() + rsh + libmalloc osx local root
# tested on osx 10.9.5 / 10.10.5
# jul/2015
# by rebel
import os,time,sys
env = {}
s = os.stat("/etc/sudoers").st_size
@Miserlou
Miserlou / gist:e67e04be073dc72aa1ab
Created March 3, 2016 12:59
AWS Lambda File System Contents
This file has been truncated, but you can view the full file.
/.
/./root
/./selinux
/./bin
/./bin/iptables-xml
/./bin/arch
/./bin/sh
/./bin/touch
/./bin/loadkeys
/./bin/setfont
@Miserlou
Miserlou / apigw_purge.py
Created March 25, 2016 19:26
API Gateway Selective Purger
import boto3
client = boto3.client('apigateway')
response = client.get_rest_apis(
limit=50
)
for api in response['items']:
input = raw_input("Delete " + api['name'] + " (" + api['description'] + ") [" + api['id'] + "]? " )