Created
March 29, 2016 15:11
-
-
Save snerpton/e7c587e7e270a7afa7e5 to your computer and use it in GitHub Desktop.
Do a whois on a list of IP addresses
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
while read ip; do org=$(whois $ip | grep Organization); netname=$(whois $ip | grep netname); amey=$(whois $ip | grep -i amey); ent=$(whois $ip | grep -i enterprise); echo "$ip: $org -- $netname -- $amey -- $ent"; done < ipaddress.txt | |
#ipaddress.txt is a list of IP addresses to check | |
# | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment