Skip to content

Instantly share code, notes, and snippets.

@skinofstars
Created August 2, 2016 11:43
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 skinofstars/84516f21601aa705dda0691a8aff7a5f to your computer and use it in GitHub Desktop.
Save skinofstars/84516f21601aa705dda0691a8aff7a5f to your computer and use it in GitHub Desktop.
quick ISP lookup
#!/bin/bash
# USE
# - Save as bulk.sh, then run the commands
# - chmod +x bulk.sh
# - ./bulk.sh ip_addresses.txt
# It reads the ip_address.txt line by line,
# does a whois request on each line, and looks
# for the term 'netname' in each whois.
while read line
do
whois $line | grep netname
done < $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment