• Stars
    star
    202
  • Rank 193,691 (Top 4 %)
  • Language
    C#
  • License
    MIT License
  • Created over 12 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A full implementation of the VirusTotal 2.0 API

VirusTotal.NET - A full implementation of the VirusTotal 2.0 API

NuGet

Features

  • Fully asynchronous API
  • Scan, rescan and get reports of scanned files and URLs
  • Get reports for IP addresses, URLs, and domains
  • Batch support for APIs that support it
  • Size and resource limits built in for better performance
  • Configurable limits to accommodate some VT private API features. However, this API does not officially support the private VT API.

Examples

VirusTotal virusTotal = new VirusTotal("YOUR API KEY HERE");

//Use HTTPS instead of HTTP
virusTotal.UseTLS = true;

//Create the EICAR test virus. See http://www.eicar.org/86-0-Intended-use.html
byte[] eicar = Encoding.ASCII.GetBytes(@"X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*");

//Check if the file has been scanned before.
FileReport report = await virusTotal.GetFileReportAsync(eicar);

Console.WriteLine("Seen before: " + (report.ResponseCode == FileReportResponseCode.Present ? "Yes" : "No"));

Output:

Seen before: True

Take a look at the VirusTotal.Examples project for more examples.

More Repositories

1

VelcroPhysics

High performance 2D collision detection system with realistic physics responses.
C#
665
star
2

VirusTotalContextMenu

A context menu that allows you to right click any file in Windows Explorer and scan it using VirusTotal.
C#
85
star
3

WolframAlpha

An implementation of the Wolfram|Alpha 2.6 API in C#.
C#
55
star
4

CSharpFastPFOR

A C# port of the JavaFastPFOR library by Daniel Lemire
C#
50
star
5

Wikipedia

A C# API for searching on Wikipedia
C#
45
star
6

SimpleS3

A .NET Core implementation of Amazon's S3 API with focus on simplicity, security and performance
C#
38
star
7

GoogleTranslateNet

A full implementation of the Google Translate 2.0 API
C#
34
star
8

CygwinContextMenu

Shift right click to open Cygwin in a folder.
C#
19
star
9

FastHash

C#
19
star
10

ApproximationNet

A sin(), cos() and inverse sqrt approximation library
C#
8
star
11

FindDupes

A file duplication finder
C#
8
star
12

HttpBuilders

A strongly typed API for building HTTP headers
C#
7
star
13

FastEnum

A source generator to generate common methods for your enum types at compile-time.
C#
6
star
14

GitLabSourceLink

C#
5
star
15

Log.Net

A modular logging library with support for logging to eventlog, SMTP, MSSQL, XML and more
C#
5
star
16

HardenIT

Website to harden modern web browsers
JavaScript
4
star
17

SPARQL.Net

A simple SPARQL read-only API
C#
3
star
18

Validator.Net

Check for XSS and SQL injections, validate zip codes, phone numbers and more for multiple countries.
C#
3
star
19

DomainAPI.Net

A full implementation of the 1.0 version of DomainAPI.com in .NET
C#
1
star
20

NovaDetect

Tests for the SuperNova web backdoor
C#
1
star
21

FastMPH

A minimal perfect hash function library based on CMPH.
C#
1
star