Skip to content

Instantly share code, notes, and snippets.

@nullenc0de
Created November 25, 2023 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nullenc0de/14989ca1d0f48b6797a9d8df2505638e to your computer and use it in GitHub Desktop.
Save nullenc0de/14989ca1d0f48b6797a9d8df2505638e to your computer and use it in GitHub Desktop.
company finder
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.region | startswith("us")) | .ip_prefix' | sort -u | tlsx -san -cn -silent -nc | awk -F'[][]' '{print $2}' | unfurl format %r.%t |tee aws_company.txt
sort ./aws_company.txt | uniq -c | sort -nr | awk '$1 >= 500'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment