/// <summary>
 /// Gives you a link to a URL analysis.
 /// </summary>
 /// <returns>A link to VirusTotal that contains the report</returns>
 public string GetPublicUrlScanLink(string url)
 {
     return(string.Format("{0}://www.virustotal.com/url/{1}/analysis/", UseTLS ? "https" : "http", HashHelper.GetSHA256(NormalizeUrl(url))));
 }
 /// <summary>
 /// Gives you a link to a file analysis based on its hash.
 /// </summary>
 /// <returns>A link to VirusTotal that contains the report</returns>
 public string GetPublicFileScanLink(FileInfo file)
 {
     return(GetPublicFileScanLink(HashHelper.GetSHA256(file)));
 }
 /// <summary>
 /// Gets the report of the file.
 /// Note: This does not send the files to VirusTotal. It hashes the file and sends that instead.
 /// </summary>
 /// <param name="file">The file you wish to get a report on.</param>
 public Task <FileReport> GetFileReport(FileInfo file)
 {
     return(GetFileReport(HashHelper.GetSHA256(file)));
 }
 /// <summary>
 /// Creates a comment on a file denoted by its hash and/or scan ID.
 /// </summary>
 /// <param name="file">The file you wish to create a comment on</param>
 /// <param name="comment">The comment you wish to add.</param>
 /// <returns>A ScanResult object containing information about the resource.</returns>
 public Task <ScanResult> CreateComment(FileInfo file, string comment)
 {
     return(CreateComment(HashHelper.GetSHA256(file), comment));
 }
Esempio n. 5
0
 public string GetPublicScanLink(FileInfo file)
 {
     return(string.Format("{0}://www.virustotal.com/file/{1}/analysis/", UseTLS ? "https" : "http", HashHelper.GetSHA256(file)));
 }