# Note, to speed scans up, set a scan variable here and add it to nmap lines where desired, eg:
nmap_defaults="--max-rtt-timeout 100ms --min-hostgroup 64 --min-rate 1000 --max-retries 2"
# nmap -Pn -n -sS -p 21-23,111,137,445,80,443 -iL target_scope.txt -oG $projectdir/nmap/$custid.quickscan-tcp.gnmap $nmap_defaults
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
| aws sts get-caller-identity | |
| aws iam get-user | |
| aws iam list-users | |
| aws iam list-groups | |
| aws iam list-roles | |
| aws iam list-policies | |
| aws iam list-policies --scope Local | |
| for x in $(aws iam list-groups |grep Arn | cut -d ":" -f2 | tr -d "'" | tr -d "," );do echo "[+] Checking $x";aws iam get-policy --policy-arn $x ;done |