Giter Site home page Giter Site logo

iploc's Introduction

iploc

Track IP Countries (Offline) / Simple program to find country of IP ...

Installation

  • First clone ( or Download ZIP file and extract it) and build binary file by go build ..
git clone https://github.com/awolverp/iploc && cd iploc && go build .

Usage

Use iploc --help to get usage:

Usage:
  ./iploc [-h | -list | -all] [OPTIONS] QUERY

Required:
  QUERY              IP/Country name

Options:
  -ns                Don't show summery of results
  -silent            Silent output
  -offset N          Set offset for results
  -limit N           Set limit for results

Output:
  -format FORMAT     Set output format ( json, csv, default )

Other:
  -list             List all countries
  -all              Show all results

!NOTE: geoip.csv file must be in current directory which you run ./iploc

Examples

Can search IP:

$ ./iploc 1.1.1.1
 ___   ____    _ 
|_ _| |  _ \  | |       ___     ___ 
 | |  | |_) | | |      / _ \   / __|
 | |  |  __/  | |___  | (_) | | (__ 
|___| |_|     |_____|  \___/   \___|
 

---------> 1.1.1.1
1.1.1.0-1.1.1.255		apnic	1313020800	Australia [AU / AUS]

- found 1 = (1) results / 169.816µs

Or country name:

$ ./iploc "TR"
 ___   ____    _ 
|_ _| |  _ \  | |       ___     ___ 
 | |  | |_) | | |      / _ \   / __|
 | |  |  __/  | |___  | (_) | | (__ 
|___| |_|     |_____|  \___/   \___|
 

---------> TR
2.56.60.0-2.56.63.255		ripencc	1552435200	Turkey [TR / TUR]
2.56.152.0-2.56.155.255		ripencc	1552521600	Turkey [TR / TUR]
2.57.188.0-2.57.191.255		ripencc	1553040000	Turkey [TR / TUR]
...

- found 1295 = (1295) results / 254.770107ms

iploc's People

Contributors

awolverp avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.