Skip to content

Instantly share code, notes, and snippets.

@ajtrichards
Created February 15, 2022 19:40
Show Gist options
  • Save ajtrichards/27c5e34ad01901bdaa40b6847934bc14 to your computer and use it in GitHub Desktop.
Save ajtrichards/27c5e34ad01901bdaa40b6847934bc14 to your computer and use it in GitHub Desktop.
Get a list of the public facing IP's from an AWS region and then, using NMAP, run a port scan.
aws ec2 describe-network-interfaces --query NetworkInterfaces\[\].Association.PublicIp | jq -r '.[]' | xargs -I{} nmap -v -A -sV {}
@ajtrichards
Copy link
Author

For those not using zsh you may be able to remove the back slashes in the command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment