Skip to content

pry0cc/ipi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ipi

I wrote this utility to help me more efficiently utilize the ipinfo.io API - especially the premium aspects.

Installation

Sign in with Google or Github to obtain a free API key with 50k requests! https://ipinfo.io/account

wget -O /tmp/install https://raw.githubusercontent.com/pry0cc/ipi/master/bin/iptools-install && chmod +x /tmp/install
/tmp/install <your token>

Example

Basic Usage

Look up a single IP

ipi 8.8.8.8

Parse an item from the results

ipi 8.8.8.8 .city

Make a CSV of a single IP

ipi 104.238.184.224 '[.city, .region, .hostname] | @csv'

Or you can read from stdin

cat ips.txt | ipi '.asn.asn'

You can do the exact same with ipr too, which is for ranges:

ipr AS7922

# Get all IP ranges for a given ASN
ipr AS7922 '.prefixes[].netblock'

About

A tiny set of helper scripts for ipinfo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages