himei/getipbyisp

Simple cURL based console application for getting IP ranges from suip.biz web-services by city, country or ISP

v1.1.1beta 2017-12-06 10:46 UTC

This package is not auto-updated.

Last update: 2024-04-24 06:10:04 UTC


README

Deprecated. See Goranger.

Simple cURL based console application for getting IP ranges from https://suip.biz web-services by city, country (very big size!! i'm really afraid) or ISP. In case of ISP you may specify single ip or web-site url of that provider as argument of script.

Dependencies

  • pear/console_commandline

Installation

Install via Composer:

composer require himei/getIpbyIsp

For manual installation clone repo

git clone https://github.com/hIMEI29A/getIpbyIsp.git

Follow to the root programm folder:

cd getIpbyIsp

Then install dependencies

composer update

composer install

Usage

Follow to bin directory of root program folder:

cd bin

Make main program file executable:

chmod +x getipbyisp

Now use it.

Type next in your console for getting help:

./getipbyisp -h

or

./getipbyisp --help

The output:

Console application for getting IP range 
from suip.biz web-services by city, country or ISP

Usage:
  getipbyisp [options] type request

Options:
  -o output, --output=output  File to store the result
                              
  -h, --help                  Show this help message and exit

Arguments:
  type     Set the type of which IP ranges will be requested: city, counrty or isp
           
  request  Request string: for country - 2-letter country code, for city - its name, for ISP - single IP or ISPs url

Examples

To get all IP ranges of Serbia

./getipbyisp country RS

To get all IP ranges of London and save it to file.txt

./getipbyisp city london -o file.txt

To get all IP ranges of Beeline ISP

./getipbyisp isp beeline.ru

or

./getipbyisp isp 217.118.85.19

Warning!!! In case of request by city, write the name of the city carefully and accurately, as much as possible. If an error occurs in the name, the search on the uncleaned database is activated, and the result includes ALL IP ranges from all possible variants. To get the most accurate result, the city name must not contain errors.

TODO

  • Tests

Contact

For bug reports or any other purpose you may contact me via email [himei at tuta dot io].