IP查找工具,以避免手动检查。
项目描述
Nipher:用于进行 IP 查找的 Python 脚本
Nipher是一个简单的脚本,可以进行多个 IP 查找以避免手动进行。它支持 IPV4 和 IPV6。
安装
Nipher需要 Python 3+。
用于pip从 PyPI 安装包:
pip install Nipher
或者:
pip3 install Nipher
用法
usage: nipher [-h] [--ip IP [IP ...]] [--ipfile IPFILE] [--json] [-o OUTPUT] [-v]
optional arguments:
-h, --help show this help message and exit
--ip IP [IP ...] List of IPs that will be resolved.
--ipfile IPFILE File that contains the list of IPs that will be resolved.
--json Saves the lookup to a .json file on the current directory.
-o OUTPUT, --output OUTPUT
The path where to save the .json files.
-v, --verbose Force complete output in the terminal.
-h = 显示帮助信息。
--ip = 单个或多个 IP 进行查找。例子:
--ip 47.162.238.182 218.96.78.50 26.121.88.46--ipfile = 包含要查找的多个 IP 的文件。例子:
--ipfile /path/to/myfile.txt--json = 告诉脚本将查找结果保存在当前目录中的 .json 文件中的参数。示例文件。
-o / --output = 脚本保存 .json 文件的自定义路径。例子:
-o /my/custom/path-v / --verbose = 告诉脚本强制一个完整的详细信息的参数,显示所有 IP 的所有信息。警告:可能会增加大量 IP 的总查找时间。
附加信息
Nipher 使用的Ip-api API有一些限制,例如每分钟 45 次查找。它尊重 API 的速率限制,因此您无需担心 API 爆炸和 IP 被禁止或考虑绕过速率限制。无论如何,计划在未来 Nipher 将支持代理。
此外,Nipher 以线性顺序工作,没有多线程(它也计划很快实现)。这样,它可以在 3 分钟内查找大约 200 个 IP(可能会因 API 响应时间而异)。
去做
- 实现代理使用
- 实现多线程
- 实施更好的信息记录
- 实施 API 回退以避免
Ip-api API速率限制