Board logo

标题: Symantec病毒碼自動下載如何實現 [打印本页]

作者: xuweibao     时间: 2010-12-10 19:30    标题: Symantec病毒碼自動下載如何實現

http://www.symantec.com/business ... etail.jsp?gid=savce

如何從上面的網頁中下載20101209-003-i32.exe和20101209-003-i64.exe這2個病毒碼

請各位高手幫幫忙!謝謝!
作者: dato     时间: 2010-12-10 20:52
用CURL更新病毒库
http://www.cn-dos.net/forum/viewthread.php?tid=25891&fpage=1&highlight=%2Bdato
wget -O %temp%\test.txt "http://www.symantec.com/avcenter/download/pages/CS-N95.html"

for /f "tokens=1,* delims==" %%a in ('type %temp%\test.txt^|findstr "http://.*[0-9]-v5i32.exe"') do (
    for /f "tokens=4 delims=<=>" %%? in ('echo "%%b"') do (set "url=%%?")
                                                                                               )
call :down %url%
goto eof
:down
::set http_proxy=http://localhost:8005
::wget --proxy --limit-rate=120k %~1
wget -c %~1
goto :eof

作者: xuweibao     时间: 2010-12-12 04:14    标题: 经过一天一夜的煎熬,终于实现了!


wget -O test.txt "http://www.symantec.com/business/security_response/definitions/download/detail.jsp?gid=savce"

for /f "delims=<=> tokens=7" %%a in ('type test.txt^|findstr "http://.*[0-9]-i.*.exe"') do (

wget -P E:\download %%a)

作者: xuweibao     时间: 2010-12-12 04:16    标题: 建议

希望别人在提出帮助的时候,不要拿以前的代码来忽悠别人。能不能针对具体情况帮忙重新写下代码??????
作者: xuweibao     时间: 2010-12-12 04:20    标题: 谢谢

不过,还是非常感谢2楼能即时答复,提供的代码也值得参考。不然对我新人来说,不知道方向去解决。谢谢!!!!!!!!1