Get an abuse contact email on the command line
I found a neat RESTful WHOIS service which returns WHOIS data for an IP formatted as JSON.
Add in a little command line tool called jq
, which let's you awk
and grep
JSON and you are all set to grab the abuse contact email address for any given IP address.
curl -s http://adam.kahtava.com/services/whois.json?query=<IP>| jq '.RegistryData.AbuseContact.Email'
To use jq
all you have to do is to download the jq binary no install necessary.
Written by James Barnett
Related protips
1 Response
Thanks for sharing.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#