Skip to content

Latest commit

 

History

History
78 lines (61 loc) · 1.17 KB

README.md

File metadata and controls

78 lines (61 loc) · 1.17 KB

intip

A simple bash scripting for searching geo location base on ip 👀.

easy to install, no need dependencies, you just need bash.

Install

curl -fsSL https://raw.githubusercontent.com/adiatma/intip/master/install.sh -s | bash

Usage

intip.sh --inline <ip>
{
  "status": "success",
  "continent": "Asia",
  "continentCode": "AS",
  "country": "Indonesia",
  "countryCode": "ID",
  "region": "SN",
  "regionName": "South Sulawesi",
  "city": "Malili",
  "district": "",
  "zip": "",
  "lat": -2.6351,
  "lon": 121.095,
  "timezone": "Asia/Makassar",
  "offset": 28800,
  "currency": "IDR",
  "isp": "PT. TELKOM INDONESIA",
  "org": "",
  "as": "AS7713 PT Telekomunikasi Indonesia",
  "asname": "telkomnet-as-ap",
  "reverse": "",
  "mobile": false,
  "proxy": false,
  "hosting": false,
  "query": "36.83.131.186"
}

More

Usage with inline

intip.sh --inline # get your ip location
# or
intip.sh --inline <ip>

Usage with prompt

intip.sh --prompt

Export to json

intip.sh --inline <ip> >> to.json | cat to.json

Get in one field

intip.sh --inline | jq '.isp'
PT. TELKOM INDONESIA