proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« [IPCN] proxy 暂时失效 | Main | IPCN proxy search smth ... 恢复  google pagerank 继续提升 »

October 1, 2004

norton.ipcn.org 的目前脚本代码

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2004/10/01/000489.html

切换了一下服务器 流量还是超大 就把官方链接给出了
更新代码经过多次改动 (最初只是一条wget 后来还改过perl的版本)
目前的代码如下:


#!/bin/bash
#
# Download norton virus db
#       By Zhang Xiuling (windtear@ipcn.org)
#

MYDIR=/var/www/ipcn.org/norton
FILENAME=`basename $0`
BASEURL="http://securityresponse.symantec.com/avcenter/download/us-files/"
WGET="wget -N -nd -nH"
DATE=`date +%Y%m%d-%H%M%S`

cd $MYDIR
mv md5-hash.txt _old_md5_/md5-hash.txt.$DATE

wget -N -nd -nH http://securityresponse.symantec.com/avcenter/download/pages/US-N95.html
#wget -N -nd -nH http://securityresponse.symantec.com/avcenter/download/pages/US-NAVCE.html
wget -N -nd -nH http://securityresponse.symantec.com/avcenter/download/md5-hash.txt
#http://securityresponse.symantec.com/avcenter/download/us-files/20020904-003-i32.exe

I32URL=`grep href.*i32.exe US-N95.html | perl -pi -e 's/.*href=\"(.*)\".*/$1/'`
I32=`basename $I32URL`
echo $I32
if [ ! -f $I32 ]; then
I32Result=0
COUNT=1
while [ $I32Result -ne 1 -a $COUNT -lt 4 ]
do
        $WGET $BASEURL$I32
        #$WGET $I32URL
        MD5=$(md5sum $I32 | cut -c 1-32)
        echo $MD5 > md5i32only
        I32Result=$(grep -ic $MD5.*$I32 md5-hash.txt)
        echo $I32Result
        let "COUNT += 1"
done
fi

NUM=0
NUM=`find ./ -name "*-i32.exe" | wc -l`
if [ $NUM -gt 1 ]; then
        ls -tr1 *-i32.exe | head -n 1 | xargs rm -f
fi

# 页面处理部分略

#wget -r http://securityresponse.symantec.com/avcenter/download/pages/US-N95.html --base="http://securityresponse.symantec.com/avcenter/download/us-files/" -c -A *i32.exe,*x86.exe,US-N95.html -N -nd -nH -R html,txt,nsf -l 1 -q

----->
[公告] http://norton.ipcn.org/ 恢复
[norton.ipcn.org] i32 x86 说明更新
[诺顿病毒库] http://norton.ipcn.org/ 加入MD5等信息
2003年度 ipcn.org/ipchina.org 总结报告
IPCN / IPCHINA 部分网络服务

 
本blog WWW

Posted by windtear at October 1, 2004 8:39 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.