Skip to content

Instantly share code, notes, and snippets.

@midnightslacker
midnightslacker / nuke_all_backups.sh
Created September 20, 2021 20:41 — forked from jchrisfarris/nuke_all_backups.sh
Delete all recovery points and Vaults
#!/bin/bash
REGIONS=`aws ec2 describe-regions --query Regions[].RegionName --output text`
for r in $REGIONS ; do
VAULTS=`aws backup list-backup-vaults --query BackupVaultList[].BackupVaultName --output text --region $r`
for v in $VAULTS ; do
RECOVERY_POINTS=`aws backup list-recovery-points-by-backup-vault --backup-vault-name $v --query RecoveryPoints[].RecoveryPointArn --output text --region $r`
for a in $RECOVERY_POINTS ; do
@midnightslacker
midnightslacker / aws-dangling-domain-discovery-tool.sh
Created October 26, 2021 18:50 — forked from dafthack/aws-dangling-domain-discovery-tool.sh
A proof of concept script for discovering AWS dangling domains
#!/bin/bash
# This script attempts to locate potential dangling domains on AWS. You need AWS CLI installed and your keys configured
# Make sure you insert your Bing API key below as well.
# All the sleeps were necessary to not allocate the same IP address multiple times
while true
do
unset IP
@midnightslacker
midnightslacker / list-of-curl-options.txt
Created November 2, 2021 22:24 — forked from eneko/list-of-curl-options.txt
List of `curl` options
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password