bash - wget 从 virustotal 中检索搜索结果
问题描述
我正在尝试从 virustotal 中检索勒索软件关键字的搜索结果,我正在尝试使用以下代码:
wget "https://www.virustotal.com/#/search/ransomware" -O output.txt
但是,我没有得到结果输出。我希望至少获得每个结果样本的哈希值,我计划稍后在其中使用它们。
有什么建议吗?
解决方案
您可以使用 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
推荐阅读
- java - Ant WsImport2 因 java.lang.NoClassDefFoundError 失败:
- oracle - 如何执行即时 sql 字符串以直接显示结果?
- curl - 对 Openstack API 的 curl 请求返回 403 禁止错误
- c# - 使用 Linq 从 Sql 表更新用 C# 创建的动态表中的数据
- mongodb - MongoDB 集群内部身份验证失败,副本集加入 - replSetHeartbeat 需要身份验证
- android - 带有改造和数据绑定的回收站视图中没有来自 api 的数据
- r - 制作一个 R 循环以更合适地找到 bin R
- c# - DI 不向控制器注入服务
- bash - 在 CLI 中执行 hql 文件时,我可以用“meld_beeline”替换“hive”吗
- ios - TableViewCell 在 TableView 中超出范围