wget从virustotal检索搜索结果

时间:2018-05-20 11:59:44

标签: bash curl wget

我正在尝试从virustotal检索ransomware关键字的搜索结果,我试图使用以下代码:

 wget "https://www.virustotal.com/#/search/ransomware" -O output.txt

但是,我没有得到结果输出。我期望得到每个结果样本的哈希值,我计划稍后使用它们。

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

您可以使用curl或wget来执行此操作。

使用卷曲

curl 'https://www.virustotal.com/ui/search?query=ransomware&relationships\[url\]=network_location%2Clast_serving_ip_address&relationships\[comment\]=author%2Citem' -H 'pragma: no-cache' -H 'cookie: _ga=GA1.2.1407677727.1526818525; _gid=GA1.2.163855722.1526818525; _gat=1' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en-US,en;q=0.9' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36' -H 'accept: application/json' -H 'cache-control: no-cache' -H 'authority: www.virustotal.com' -H 'referer: https://www.virustotal.com/' --compressed

使用wget

wget 'https://www.virustotal.com/ui/search?query=ransomware&relationships\[url\]=network_location%2Clast_serving_ip_address&relationships\[comment\]=author%2Citem' -O output.txt
相关问题