繁体   English   中英

wget.exe 无法在virustotal.com 上保存页面

[英]wget.exe Can't save page at virustotal.com

我已经构建了个人防病毒软件,它需要将来自virustotal.com 的结果页面保存在我的驱动器中,我确实使用 wget.exe 作为该工作的第三部分,但它一直显示此错误并保存 [0/0]:

    C:\wget\GnuWin32\bin>wget.exe --no-check-certificate https://www.virustotal.com/en/file/15c34d2b0e834727949dbacea897db33c785a32ac606c0935e3758c8dc975535/analysis/
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrcsyswgetrc = C:\wget\GnuWin32/etc/wgetrc--2015-11-30 06:39:03--  https://www.virustotal.com/en/file/15c34d2b0e834727949dbacea897db33c785a32ac606c0935e3758c8dc975535/analysis/
Resolving www.virustotal.com... 127.8.0.1
Connecting to www.virustotal.com|127.8.0.1|:443... connected.
WARNING: cannot verify www.virustotal.com's certificate, issued by `/C=US/O=GeoT
rust Inc./CN=RapidSSL SHA256 CA - G3':
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: `index.html.2'

    [ <=>                                   ] 0           --.-K/s   in 0s

2015-11-30 06:39:05 (0.00 B/s) - `index.html.2' saved [0/0]


C:\wget\GnuWin32\bin>

请问有什么建议吗?

Virustotal 有一个 API 可以做你想做的事,他们为此提供了 python 示例:

import simplejson
import urllib
import urllib2
url = "https://www.virustotal.com/vtapi/v2/file/report"
parameters = {"resource": "99017f6eebbac24f351415dd410d522d",  
              "apikey": "1fe0ef5feca2f84eb450bc3617f839e317b2a686af4d651a9bada77a522201b0"}
data = urllib.urlencode(parameters)
req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
json = response.read()
print json

(所有代码取自https://www.virustotal.com/vtapi/v2/file/report

很可能因此您尝试做的事情不起作用。 当您使用在浏览器中看到的 URL 时,该站点返回的Content-Length0 (使用大量 Javascript 来完成其工作)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM