himei / getipbyisp

一个基于cURL的简单控制台应用程序,用于通过城市、国家或ISP从suip.biz网络服务获取IP地址段

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

This package is not auto-updated.

Last update: 2024-09-25 08:11:33 UTC


README

已弃用。请参阅 Goranger

一个基于cURL的简单控制台应用程序,用于通过城市、国家(非常大!!我真的很担心)或ISP从https://suip.biz网络服务获取IP地址段。如果指定ISP,可以将单个IP地址或该服务提供商的网站URL作为脚本的参数。

依赖项

  • pear/console_commandline

安装

通过Composer安装

composer require himei/getIpbyIsp

手动安装:克隆仓库

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

进入根程序文件夹

cd getIpbyIsp

然后安装依赖项

composer update

composer install

使用方法

进入根程序文件夹的bin目录

cd bin

将主程序文件设置为可执行

chmod +x getipbyisp

现在就可以使用了。

在控制台中输入以下内容以获取帮助

./getipbyisp -h

./getipbyisp --help

输出

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

示例

获取塞尔维亚的所有IP地址段

./getipbyisp country RS

获取伦敦的所有IP地址段并保存到 file.txt 文件中

./getipbyisp city london -o file.txt

获取Beeline ISP的所有IP地址段

./getipbyisp isp beeline.ru

./getipbyisp isp 217.118.85.19

警告!!! 在按城市请求时,请尽可能仔细和准确地写出城市的名称,如果名称中出错,则会激活对未清理数据库的搜索,并将包括从所有可能的变体中获取的所有IP地址段。为了获取最准确的结果,城市名称不得包含错误。

待办事项

  • 测试

联系

如果您需要报告错误或其他目的,可以通过电子邮件 [himei at tuta dot io] 联系我。