HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.
It is currently 22 Jun 2014 09:52

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 17 Feb 2008 12:47 
Offline

Joined: 29 Jan 2008 09:48
Posts: 4
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



Top
 Profile  
 
 Post subject:
PostPosted: 17 Feb 2008 18:20 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
Here is the official "non-official" script:

http://itsec.ait.ac.th/download/local/t ... ate.tar.gz


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group