Skip to content

Interact with a implementation of the public interface without the struggle of API limitations.

License

Notifications You must be signed in to change notification settings

twsl/VirusTotal.NET

Repository files navigation

Nerdicus.VirusTotal.NET

Build Status Nuget Nuget (with prereleases)

Interact with a implementation of the public interface without the struggle of API limitations. This repository is based on https://github.com/Genbox/VirusTotal.Net/ which should be used for most use cases.

Features

  • Fully asynchronous API
  • Scan and get reports of scanned files
  • Scan and get reports of URLs
  • Get reports for IP addresses and domains

Example

VirusTotal virusTotal = new VirusTotal();

//Create the EICAR test virus. See http:https://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.
var fileReport = await virusTotal.GetFileReportAsync(eicar);

Console.WriteLine($"Seen before: {fileReport.Data.Attributes.LastAnalysisDate}");

About

Interact with a implementation of the public interface without the struggle of API limitations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages