Giter VIP home page Giter VIP logo

virustotal3-rs's Introduction

virustotal3-rs

Crates.io GitHub Twitter Follow

Library for virustotal API version 3 written in Rust. ๐Ÿฆ€

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

Cargo.toml:

...
[dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
virustotal3 = { version = "3.0.2" }

main.rs:

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);
    match vt.scan_url(&url).await {
        Ok(res) => {
            println!("{:?}", &res.data);
         },
        Err(err) => { println!("[Error] {err}") }
    }   
}

More examples in doc.rs/virustotal3

Acknowledgements

virustotal3-rs's People

Contributors

g0h4n avatar rjzak avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

rjzak

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.