Skip to content

Instantly share code, notes, and snippets.

View tragulum's full-sized avatar

Diyaa al-Yurti tragulum

View GitHub Profile
@tragulum
tragulum / key-pol-getter.sh
Created December 29, 2023 13:17
Script to cycle through all KMS keys and then grab their policies and write them to a file.
#!/bin/bash
# Default values
profile="default"
region="us-east-1"
# Parse command line options
while getopts ":p:r:" opt; do
case $opt in
p)
@tragulum
tragulum / vpc-collect.sh
Last active December 29, 2023 13:18
VPC and VPC Peering Enum Script
#!/bin/bash
# Default values
profile="default"
region="us-east-1" # Replace with your default region
# Function to display script usage
usage() {
echo "Usage: $0 -p <profile> -r <region>"
echo "Options:"