首页 > 解决方案 > wget 从 virustotal 中检索搜索结果

问题描述

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

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

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

有什么建议吗?

标签: bashcurlwget

解决方案


您可以使用 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

推荐阅读