Closed lovelyjuice closed 11 months ago
try json format mode.
# nali -j 1.2.3.4
{"type":0,"ip":"1.2.3.4","text":"澳大利亚 APNIC Debogon-prefix网络","source":"qqwry","info":{"country":"澳大利亚","area":"APNIC Debogon-prefix网络"}}
Please note that the result is directly related to the ip database, you can try other databases.
为什么我没有这个参数,版本是 0.7.3
PS D:\Tools\nali> .\nali-windows-amd64.exe -j 1.2.3.4
Error: unknown shorthand flag: 'j' in -j
Usage:
nali [flags]
nali [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
info get the necessary information of nali
update update qqwry, zxipv6wry, ip2region ip database and cdn
Flags:
--gbk Use GBK decoder
-h, --help help for nali
-v, --version version for nali
Use "nali [command] --help" for more information about a command.
2023/09/26 10:20:47 unknown shorthand flag: 'j' in -j
PS D:\Tools\nali> .\nali-windows-amd64.exe -v
nali version v0.7.3
Sorry for that, this will be released on 0.8.0
try 0.8.0
比如我想通过grep等方式从一个IP列表中筛选出中国的IP,但是存在以下数据,只能用人来判断IP是否属于国内,grep是做不到的