HOW TO USE:
Usage: python3 cnipdb.py -r ip.txt(default) -o addressINFO.txt(default)
Options:
-h, --help show this help message and exit
-r READFILE, --readfile=READFILE ip address file name
-o OUTFILE, --outfile=OUTFILE output file name
Decompress data:
unzip ipdb.zip
you can get ipdb.db
write ip list in ip.txt Attention language choice
python3 enipdb.py
python3 cnipdb.py
or
python3 cnipdb.py enipdb.py -r ip.txt -o add.txt
or
python3 cnipdb.py cnipdb.py -r ip.txt -o add.txt
result save in addressINFO.txt
python3 netview.py
is netstat -nao
remote ip mark address
20230824 新增netview.py python运行后相当于 netstat -nao 并且标注了远程地址的归属地
使用SQLite数据库查询ip地址归属地 在个人vps上也可以轻松使用 通常在批量查询时使用
需要解压ipdb.zip 因为GitHub上传限制的问题所以我打包了它
地址来源互联网(某厂商2021年的地址库) 准确性很高
具体使用参考英文文档即可 开箱即用
开箱即用
若对代码有更改的建议请提Issues