virustotal3

Crates.iovirustotal3
lib.rsvirustotal3
version3.0.2
sourcesrc
created_at2023-03-15 18:42:03.240122
updated_at2023-12-11 11:21:35.553985
descriptionThe library for VirusTotal Public API 3.0
homepagehttps://github.com/g0h4n/virustotal3-rs
repositoryhttps://github.com/g0h4n/virustotal3-rs
max_upload_size
id810905
size31,661
Quentin Texier (g0h4n)

documentation

https://docs.rs/virustotal3/

README

virustotal3-rs

Crates.io GitHub Twitter Follow

Library for virustotal API version 3 written in Rust. :crab:

Implemented Features

Method Resource Description
GET /api/v3/files/{id} Retrieve file scan reports
POST /api/v3/files Upload and scan a file
POST /api/v3/files/{id}/analyse Rescanning already submitted files
GET /api/v3/urls/{id} Retrieve URL scan reports
POST /api/v3/urls Scan an URL
POST /api/v3/{type}/{id}/comments Make comments for a file or URL or Domain
GET /api/v3/{type}/{id}/comments Get comments for a file or URL or Domain
DELETE /api/v3/comments/{id} Delete a comment for a file or URL or Domain
GET /api/v3/domains/{domain} Retrieves a domain report
GET /api/v3/ip_address/{ip-address} Retrieve an IP address report

Example

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);
}

More examples in doc.rs/virustotal3

Acknowledgements

Commit count: 6

cargo fmt