Skip to content

Instantly share code, notes, and snippets.

@glamrock
Last active April 24, 2017 18:03
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 glamrock/f7d0ee737507d5efd272086ec51e6735 to your computer and use it in GitHub Desktop.
Save glamrock/f7d0ee737507d5efd272086ec51e6735 to your computer and use it in GitHub Desktop.
#! /bin/bash
IPLIST="ips.txt"
while read IP; do
echo ""
echo "$IP"
whois "$IP" | grep descr
whois "$IP" | grep changed
dig -x "$IP" +short | head -1
echo ""
done < "$IPLIST" >ipsout.txt
# ^ *[0-9]+ .+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment