2 个稳定版本
3.0.2 | 2023 年 12 月 11 日 |
---|---|
3.0.1 | 2023 年 3 月 15 日 |
#890 in 网页编程
每月 23 次下载
24KB
363 行
virustotal3-rs
用 Rust 编写的 virustotal API 版本 3 的库。🦀
实现的功能
方法 | 资源 | 描述 |
---|---|---|
GET | /api/v3/files/{id} | 检索文件扫描报告 |
POST | /api/v3/files | 上传并扫描文件 |
POST | /api/v3/files/{id}/analyse | 重新扫描已提交的文件 |
GET | /api/v3/urls/{id} | 检索 URL 扫描报告 |
POST | /api/v3/urls | 扫描 URL |
POST | /api/v3/{type}/{id}/comments | 对文件或 URL 或域名发表评论 |
GET | /api/v3/{type}/{id}/comments | 获取文件或 URL 或域名的评论 |
DELETE | /api/v3/comments/{id} | 删除文件或 URL 或域名的评论 |
GET | /api/v3/domains/{domain} | 检索域名报告 |
GET | /api/v3/ip_address/{ip-address} | 检索 IP 地址报告 |
示例
use virustotal3::VtClient;
#[tokio::main]
async fn main() {
let api = "Your API KEY";
let url = "The URL you want to check";
let vt = VtClient::new(api);
let res = vt.scan_url(&url).await;
println!("{:?}", &res.data);
}
更多示例请参阅 doc.rs/virustotal3
致谢
- 感谢 owlinux1000 为 virustotal API 版本 2 做出的初始工作。
依赖项
~4–19MB
~254K SLoC