mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-11-22 02:21:36 +01:00
Merge branch 'master' of github.com:mgeeky/Penetration-Testing-Tools
This commit is contained in:
commit
255f86b2f1
@ -184,7 +184,7 @@ if [[ "$ROLE_NAME" == "all" ]]; then
|
|||||||
echo "[+] Evaluating ALL used IAM Roles"
|
echo "[+] Evaluating ALL used IAM Roles"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
out=($(aws --profile awl iam list-roles --query 'Roles[*].RoleName' --output text | tr '\t' '\n'))
|
out=($(aws --profile $PROFILE iam list-roles --query 'Roles[*].RoleName' --output text | tr '\t' '\n'))
|
||||||
|
|
||||||
for role in "${out[@]}"; do
|
for role in "${out[@]}"; do
|
||||||
examine_role $role
|
examine_role $role
|
||||||
|
@ -58,7 +58,7 @@ function rds_snapshots() {
|
|||||||
function ami_images() {
|
function ami_images() {
|
||||||
out=$(_aws ec2 describe-images --owners self --executable-users all)
|
out=$(_aws ec2 describe-images --owners self --executable-users all)
|
||||||
if ! echo "$out" | grep -q '": \[\]'; then
|
if ! echo "$out" | grep -q '": \[\]'; then
|
||||||
echo "---[ Public RDS Snapshots"
|
echo "---[ Public AMI Images"
|
||||||
echo "$out"
|
echo "$out"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user