此脚本可以查看ip归属地!
#!/bin/bash
path="/usr/local/bin/nali"
if [ ! -f $path ]
then
wget http://qqwry.googlecode.com/files/nali-0.1.tar.gz -P /opt/ && cd /opt/
tar zxvf nali-0.1.tar.gz
cd nali-0.1
./configure && make && make install
echo -e "\033[31m 安装IP归属地插件成功! \033[0m"
else
echo -e "\033[31m nali工具已安装..... \033[0m"
fi
#测试命令
echo -e "\033[31m ====测试命令是否成功!==== \033[0m"
tracert mail.t4game.com | nali
path="/usr/local/bin/nali"
if [ ! -f $path ]
then
wget http://qqwry.googlecode.com/files/nali-0.1.tar.gz -P /opt/ && cd /opt/
tar zxvf nali-0.1.tar.gz
cd nali-0.1
./configure && make && make install
echo -e "\033[31m 安装IP归属地插件成功! \033[0m"
else
echo -e "\033[31m nali工具已安装..... \033[0m"
fi
#测试命令
echo -e "\033[31m ====测试命令是否成功!==== \033[0m"
tracert mail.t4game.com | nali