12345678910111213141516171819202122232425262728293031323334353637 |
- #!/bin/bash
- # apt -y install unzip
- # IPv4 免费地址库 & 客户端工具
- # 包括IPv4 免费数据库及相关、IP库解析代码第三方版、BestTrace 软件下载、浏览器扩展
- # https://www.ipip.net/download.html#ip_trace
- # https://cdn.ipip.net/17mon/besttrace4linux.zip
- # install besttrace
- if [ ! -f "besttrace" ]; then
- wget https://cdn.ipip.net/17mon/besttrace4linux.zip
- unzip besttrace4linux.zip
- chmod +x besttrace
-
- fi
- ## start to use besttrace
- next() {
- printf "%-70s\n" "-" | sed 's/\s/-/g'
- }
- clear
- next
- ip_list=(14.215.116.1 101.95.120.109 117.28.254.129 113.207.32.65 119.6.6.6 183.192.160.3 183.221.253.100 202.112.14.151)
- ip_addr=(广州电信 上海电信 厦门电信 重庆联通 四川联通 上海移动 成都移动 成都教育网)
- # ip_len=${#ip_list[@]}
- for i in {0..7}
- do
- echo ${ip_addr[$i]}
- ./besttrace -q 1 ${ip_list[$i]}
- next
- done
|