Created
January 16, 2022 20:48
-
-
Save netwons/25fe3a5f4c342af7fbe49aceca4aa196 to your computer and use it in GitHub Desktop.
Recon - CIDR with whois
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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