Skip to content

Instantly share code, notes, and snippets.

@n-johnson
Created October 26, 2015 14:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n-johnson/7187ee32608ec6113a66 to your computer and use it in GitHub Desktop.
Save n-johnson/7187ee32608ec6113a66 to your computer and use it in GitHub Desktop.
cloudfront ip enumeration
# req: prips
curl https://ip-ranges.amazonaws.com/ip-ranges.json \
| grep -B 2 CLOUDFRONT \
| grep 'ip_prefix' \
| awk '{ print $2 }' \
| tr -d '",' \
| xargs -I{} prips {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment