Skip to content

Instantly share code, notes, and snippets.

@netwons
netwons / cidr-whois.sh
Created January 16, 2022 20:48
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