Skip to content

Instantly share code, notes, and snippets.

@calmhavoc
calmhavoc / screener.py
Last active June 25, 2026 18:20
screener
#!/usr/bin/env python3
"""
python -m venv venv
source ./venv/bin/activate
requirements:
anyio==4.13.0
beautifulsoup4==4.14.3
certifi==2026.4.22
exceptiongroup==1.3.1
greenlet==3.5.0
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
Note 1
# 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 
Note 2