HTTP Anti-Virus Proxy http://havp.hege.li/forum/ |
|
Trend Micro Virus Definitions update script http://havp.hege.li/forum/viewtopic.php?f=3&t=338 |
Page 1 of 1 |
Author: | nansenat16 [ 17 Feb 2008 12:47 ] |
Post subject: | Trend Micro Virus Definitions update script |
lpt-update.sh Quote: #!/bin/sh
tmp="/tmp/update_tmp/" hold=2 if [ -d $tmp ]; then wget -q -O $tmp./tmp http://www.trendmicro.com/download/zh-t ... oductid=20 cat $tmp./tmp|grep "http://www.trendmicro.com/ftp/products/pattern" > $tmp./version.new rm $tmp./tmp m5_new=`md5sum $tmp./version.new|colrm 33` if [ -e $tmp./version.old ]; then m5_old=`md5sum $tmp./version.old|colrm 33` if [ $m5_new != $m5_old ]; then wget -q -O $tmp./db.tar -i $tmp./version.new --force-html if [ -e $tmp./db.tar ]; then tar -xf $tmp./db.tar --directory=$tmp rm $tmp./db.tar rm $tmp./whatsnew.txt mv $tmp./lpt* /etc/iscan /etc/init.d/havp reload mv $tmp./version.new $tmp./version.old fi fi else mv $tmp./version.new $tmp./version.old fi ls -l --sort=time /etc/iscan/|grep lpt\$vpn|awk '{print $9}' > $tmp./list.txt for (( n=`expr 2 + $hold`; n<=`cat $tmp./list.txt|wc -l`; n++ )) do fname=`cat $tmp./list.txt|head -n $n|tail -n 1` rm /etc/iscan/$fname done else mkdir $tmp fi |
Author: | hege [ 17 Feb 2008 18:20 ] |
Post subject: | |
Here is the official "non-official" script: http://itsec.ait.ac.th/download/local/t ... ate.tar.gz |
Page 1 of 1 | All times are UTC + 2 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |