簡體   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