Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/owlinux1000/virustotal.rs
VirusTotal API Library for Rust
https://github.com/owlinux1000/virustotal.rs
rust virustotal
Last synced: about 11 hours ago
JSON representation
VirusTotal API Library for Rust
- Host: GitHub
- URL: https://github.com/owlinux1000/virustotal.rs
- Owner: owlinux1000
- License: mit
- Created: 2018-02-21T06:59:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-03T07:15:29.000Z (about 5 years ago)
- Last Synced: 2024-10-13T13:39:08.605Z (about 1 month ago)
- Topics: rust, virustotal
- Language: Rust
- Homepage:
- Size: 34.2 KB
- Stars: 14
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# VirusTotal.rs
[![Build Status](https://travis-ci.org/owlinux1000/virustotal.rs.svg?branch=master)](https://travis-ci.org/owlinux1000/virustotal.rs)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE.txt)
[![Crates](https://img.shields.io/crates/v/virustotal.svg)](https://crates.io/crates/virustotal)Library for VirusTotal APIv2
## Implemented Features
| Method | Resource | Description | Permission |
|:------:|:----------------------------|:-----------------------------------|:-----------|
| GET | /vtapi/v2/file/report | Retrieve file scan reports | public |
| POST | /vtapi/v2/file/scan | Upload and scan a file | public |
| POST | /vtapi/v2/file/rescan | Rescanning already submitted files | public |
| GET | /vtapi/v2/url/report | Retrieve URL scan reports | public |
| POST | /vtapi/v2/url/scan | Scan an URL | public |
| POST | /vtapi/v2/comments/put | Make comments on files and URLs | public |
| GET | /vtapi/v2/comments/get | Get comments for a file or URL | private |
| GET | /vtapi/v2/domain/report | Retrieves a domain report | public |
| GET | /vtapi/v2/ip-address/report | Retrieve an IP address report | public |## Example
```rust
extern crate virustotal;use virustotal::*;
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);
println!("{:?}", vt.report_url(&res.scan_id.unwrap()));
}
```## Acknowledgements
* [Thanks virustotal.com for posting](https://support.virustotal.com/hc/en-us/articles/115002146469-API-Scripts)