I am writing this answer just because it seems to be a good update for these 4 years old answers. ScanResult fileResult = virusTotal.ScanFile(fileInfo) If the file has been scanned before, the results are embedded inside the report. VirusTotal virusTotal = new VirusTotal(ConfigurationManager.AppSettings) įileInfo fileInfo = new FileInfo("EICAR.txt") įile.WriteAllText(fileInfo.FullName, if the file has been scanned before.įileReport fileReport = virusTotal.GetFileReport(fileInfo) īool hasFileBeenScannedBefore = fileReport.ResponseCode = ReportResponseCode.Present Ĭonsole.WriteLine("File has been scanned before: " + (hasFileBeenScannedBefore ? "Yes" : "No")) Here the documentation with examples in Python of their interfaceĪnd because no answer is complete without code, this is taken directly from the sample client shipped with the VirusTotal.NET library static void Main(string args) Here the comprensive documentation about their API Here a VirusTotal.NET a library for this API The site provides also an Application Programming Interface that allows a programmatically approach to its scanning engine. In this way your solution is no more binded to a particular Antivirus product (albeit you are binded to Internet availability) This site provides a free service in which your file is given as input to numerous antivirus products and you receive back a detailed report with the evidences resulting from the scanning process. Instead of using a local Antivirus program (and thus binding your program to that particular Antivirus product and requesting your customers to install that Antivirus product) you could use the services of You give them full access to everything: "When you upload or otherwise submit content, you give VirusTotal (and those we work with) a worldwide, royalty free, irrevocable and transferable licence to use, edit, host, store, reproduce, modify, create derivative works, communicate, publish, publicly perform, publicly display and distribute such content."
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |