楼 主
Symantec病毒碼自動下載如何實現
发表于 2010-12-10 19:30 · IANA 局域网IP(Private-Use)
新手上路
★
积分 6
发帖 6
注册 2010-12-09 13:54
15年会员
UID 178979
性别 男
状态 离线
第 2 楼
发表于 2010-12-10 20:52 · 中国 上海 电信
高级用户
★★★
积分 916
发帖 377
注册 2004-03-08 00:00
22年会员
UID 19523
性别 男
状态 离线
用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://.*-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
第 3 楼
经过一天一夜的煎熬,终于实现了!
发表于 2010-12-12 04:14 · 中国 广东 深圳 福田区 电信
新手上路
★
积分 6
发帖 6
注册 2010-12-09 13:54
15年会员
UID 178979
性别 男
状态 离线
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://.*-i.*.exe"') do (
wget -P E:\download %%a)
第 4 楼
建议
发表于 2010-12-12 04:16 · 中国 广东 深圳 福田区 电信
新手上路
★
积分 6
发帖 6
注册 2010-12-09 13:54
15年会员
UID 178979
性别 男
状态 离线
希望别人在提出帮助的时候,不要拿以前的代码来忽悠别人。能不能针对具体情况帮忙重新写下代码??????
第 5 楼
谢谢
发表于 2010-12-12 04:20 · 中国 广东 深圳 福田区 电信
新手上路
★
积分 6
发帖 6
注册 2010-12-09 13:54
15年会员
UID 178979
性别 男
状态 离线
不过,还是非常感谢2楼能即时答复,提供的代码也值得参考。不然对我新人来说,不知道方向去解决。谢谢!!!!!!!!1
论坛跳转: