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.
- Fully asynchronous API
- Scan and get reports of scanned files
- Scan and get reports of URLs
- Get reports for IP addresses and domains
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}");