使用场景:有恶意文件的sha256,需要上传到Virustotal查看扫描结果
语言:Python
准备:sha256值的文件psha.txt
Virustotal的API KEY(申请一个账户,账户里面有【My API Key】)
注意:Virustotol.com的访问需要翻墙,我的Chrome浏览器安装了代理,所以headers参数的User-Agent是Chrome的版本。
Chrome浏览器版本的查看方式:输入chrome://version查看,用户代理即User-Agent
Virustotal查询结果的数据格式:
#coding : utf-8
import