This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $# -ne 1 ]]; then | |
echo "usage: $0 <rolename> (e.g. \`$0 EngineerProd\`)" > /dev/stderr | |
exit 127 | |
fi | |
if ! which jq 2>&1 > /dev/null ; then | |
echo "$0 error: Please install 'jq'." > /dev/stderr | |
exit 127 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# tested with boto 2.38.0 | |
import boto | |
import boto.cloudtrail | |
import json | |
import logging | |
import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find the IAM username belonging to the TARGET_ACCESS_KEY | |
# Useful for finding IAM user corresponding to a compromised AWS credential | |
# Requirements: | |
# | |
# Environmental variables: | |
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY | |
# python: | |
# boto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# reset-onid.py - A script to allow you to keep your ONID password at Oregon | |
# State University. This script is (literally) untested and should not be used | |
# under any circumstances | |
# | |
# Dependencies: | |
# - httplib2 | |
# - The 'pwgen' utility | |
# |