防病毒系统 NAI McAfee AntiVirus (uvscan)
时间:2007-03-31 来源:snowtty
#!/bin/sh
#
# $Id$
#
PATH=/bin:/usr/local/bin:/usr/bin
# wget,rm,tar 的路径
export PATH
UVPATH=/usr/local/libexec/uvscan/
#uvscan数据文件目录
cd $UVPATH
rm update.ini*
wget http://open-systems.ufl.edu/mirrors/ftp.nai.com/virusdefs/4.x/update.ini >/dev/null
# 下载升级配置文件
AVVER=`grep DAT /usr/local/libexec/uvscan/update.ini | head -4 | grep '[^0-9]4[0-9][0-9][0-9][^0-9]' | head -1 | sed -e 's/^.*[^0-9]\(4[0-9]*\)[^0-9].*$/\1/'`
# 取得最新数据包版本
if [ ! -f $UVPATH/dat-$AVVER.tar ]; then
for i in *.tar ; do
mv $i $i.old
done
if wget http://open-systems.ufl.edu/mirrors/ftp.nai.com/virusdefs/4.x/dat-$AVVER.tar >/dev/null ; then
for i in *.dat ; do
cp -p $i $i.bak
done
if tar xf dat-$AVVER.tar ; then
rm -f *.old
echo `date` Successfully updated AntiVirus DAT files to $AVVER
fi
fi
fi
#
# $Id$
#
PATH=/bin:/usr/local/bin:/usr/bin
# wget,rm,tar 的路径
export PATH
UVPATH=/usr/local/libexec/uvscan/
#uvscan数据文件目录
cd $UVPATH
rm update.ini*
wget http://open-systems.ufl.edu/mirrors/ftp.nai.com/virusdefs/4.x/update.ini >/dev/null
# 下载升级配置文件
AVVER=`grep DAT /usr/local/libexec/uvscan/update.ini | head -4 | grep '[^0-9]4[0-9][0-9][0-9][^0-9]' | head -1 | sed -e 's/^.*[^0-9]\(4[0-9]*\)[^0-9].*$/\1/'`
# 取得最新数据包版本
if [ ! -f $UVPATH/dat-$AVVER.tar ]; then
for i in *.tar ; do
mv $i $i.old
done
if wget http://open-systems.ufl.edu/mirrors/ftp.nai.com/virusdefs/4.x/dat-$AVVER.tar >/dev/null ; then
for i in *.dat ; do
cp -p $i $i.bak
done
if tar xf dat-$AVVER.tar ; then
rm -f *.old
echo `date` Successfully updated AntiVirus DAT files to $AVVER
fi
fi
fi
相关阅读 更多 +
排行榜 更多 +