前言
近期在分类处理大量的 IP ,其中不乏需要对 IP 信息的查看,以防止对 IP 的误操作。在用别人的平台查看还要开会员啥的,免费次数还有限制,于是乎想着不如自己弄个平台,也方便后面的食用,同时自己维护该库,渗透的时也可以查查攻击 IP 等。于是借鉴了网上相关教程自己倒腾部署了一个 IP 信息查询平台,经过自己试测,查询的准确率挺高的,下面就介绍该 IP 信息查询平台的相关玩法。
IP 查询链接
平台链接如下:
IP地址:
ip.isisy.com食用方法
食用方法可以是命令行模式,也可以是 Web 模式,玩法多多。
命令行模式
平台使用 User-agent 判别是否为命令行环境,所有带有 curl 或 wget 的客户端查询均判别为命令行请求,该方式默认允许基于 http 的通讯方式,而不产生二次跳转。
- 使用 - /help指令可查看命令列表:- [root@tx2_yang ~]# curl -s ip.isisy.com/help echoIP - v2.0 Format: http(s)://ip.isisy.com{Request_URI} / or /ip -> Show client IP. /info or /info/ -> Show detail of client IP. /{ip} or /info/{ip} -> Show detail of {ip}. /info/gbk -> Show detail of client IP (use GBK encoding). /{ip}/gbk or /info/{ip}/gbk -> Show detail of {ip} (use GBK encoding). /qr -> Show QR code of client IP (use special unicode characters). /qr/ -> Show QR code of client IP (use full characters). /qr/{xx} -> Show QR code of client IP (Use two custom characters). /help -> Show help message. /ua -> Show http user-agent of client. /version -> Show version of echoIP and IP database. /query?xxx=xxx&xxx=xxx |-> error=true: Show error request. |-> version=true: Show version of echoIP and IP database. |-> help=true: Show help message. |-> gbk=true: Use GBK encoding. |-> qr=true: Show QR code of client IP. |-> justip=true: Only query the client IP. |-> ip={ip}: Query of specified IP. [root@tx2_yang ~]#
- 使用 - /或- /ip指令可查询客户端 IP 地址:- [root@tx2_yang ~]# curl -s ip.isisy.com 39.144.38.5 [root@tx2_yang ~]# [root@tx2_yang ~]# curl -s ip.isisy.com/ip 39.144.38.5 [root@tx2_yang ~]#
- 使用 - /info或- /info/指令可查询客户端IP的详细信息:- [root@tx2_yang ~]# curl -s ip.isisy.com/info IP: 39.144.38.5 AS: AS9808 City: 合肥 Region: 安徽 Country: CN - China(中国) Timezone: Asia/Shanghai Location: 31.86,117.27 ISP: China Mobile Communications Corporation Scope: 39.144.38.0/24 Detail: 安徽省合肥市移动 [root@tx2_yang ~]# [root@tx2_yang ~]# curl -s ip.isisy.com/info/ IP: 39.144.38.5 AS: AS9808 City: 合肥 Region: 安徽 Country: CN - China(中国) Timezone: Asia/Shanghai Location: 31.86,117.27 ISP: China Mobile Communications Corporation Scope: 39.144.38.0/24 Detail: 安徽省合肥市移动 [root@tx2_yang ~]#
- 使用 - /info/gbk指令可查询客户端IP的详细信息,效果同- /info或- /info/,使用 GBK 编码输出:- [root@tx2_yang ~]# curl -s ip.isisy.com/info/gbk # GBK 编码 IP: 39.144.38.5 AS: AS9808 City: ºϷ Region: °²» Country: CN - China£¨א¹ Timezone: Asia/Shanghai Location: 31.86,117.27 ISP: China Mobile Communications Corporation Scope: 39.144.38.0/24 Detail: °²»֊¡ºϷˊђƶ¯ [root@tx2_yang ~]#
- 使用 - /{ip}/gbk或- /info/{ip}/gbk指令可查询指定 IP 的详细信息,效果同- /{ip}或- /info/{ip},使用 GBK 编码输出,此处不在演示。- GBK 输出方式用于兼容 Windows 10 以下及部分早期版本的 CMD,使其返回中文信息不乱码。 
- 使用 - /qr指令以使用特殊 Unicode 字符绘制客户端 IP 的 URL 二维码,其图片如图所示: - 该方式在部分命令行下存在错位显示问题 
- 使用 - /qr/指令以使用满格的 Unicode 字符绘制客户端 IP 的 URL 二维码,此方式显示错位几率较低,但是显示面积偏大,其图片如图所示: 
- 使用 - /qr/{xx}指令以使用自定义字符绘制客户端 IP 的 URL 二维码,此方式在等宽字体下不存在错位问题,但是显示效果较差,如图所示: 
- 使用 /help以显示帮助信息,即命令列表。
- 使用 - /ua命令以显示客户端- User-agent,常在网页端使用:- [root@tx2_yang ~]# curl -s ip.isisy.com/ua curl/7.29.0 [root@tx2_yang ~]# [root@tx2_yang ~]# wget -q -O- ip.isisy.com/ua Wget/1.14 (linux-gnu) [root@tx2_yang ~]#
- 使用 - /version以显示平台及 IP 数据库版本信息:- [root@tx2_yang ~]# curl -s ip.isisy.com/version echoip -> v2.0 qqwry.dat -> 2022-08-27 ipip.net -> 2022-08-21 [root@tx2_yang ~]#
- 使用 - /query?xxx=xxx&xxx=xxx以使用原生查询接口,其可使用参数如下:- error=true:返回错误信息/页面。
- version=true:显示平台及IP数据库版本信息。
- help=true:显示帮助信息。
- gbk=true:使用 GBK 编码。
- qr=true:显示客户端IP的二维码。
- justip=true:仅查询客户端 IP 地址。
- ip={ip}:查询的目标 IP 地址。
 
Web 模式
平台支持 Web 模式查询,界面如图所示:

其中:
- 双击 IP 字段,可获取当前 IP 数据库版本。
- 点击 AS 编号,将跳转到该自治系统的详细信息页面。
- 点击经纬度信息,将打开谷歌地球并显示该点的三维图像(需要蝌学网)。
- 双击显示框空白处或上方的 Please enter your IP address字样,将会弹出一个二维码,扫描可以直达当前页面。
 
                             
                            
1 条评论
感谢大佬