Skip to content

Instantly share code, notes, and snippets.

@netwons
Created January 16, 2022 20:48
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 netwons/25fe3a5f4c342af7fbe49aceca4aa196 to your computer and use it in GitHub Desktop.
Save netwons/25fe3a5f4c342af7fbe49aceca4aa196 to your computer and use it in GitHub Desktop.
Recon - CIDR with whois
# For every domain in file domains.txt, print CIDR and Organization (one-liner):
for DOMAIN in $(cat domains.txt);do echo $(for ip in $(dig a $DOMAIN +short); do whois $ip | grep -e "CIDR\|Organization" | tr -s " " | paste - -; d
one | uniq); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment