· 6 years ago · Oct 19, 2019, 02:26 AM
1package virustotalexample;
2
3/*
4 *
5 * @author Mauricio Correa
6 *
7 */
8
9import java.io.IOException;
10import java.util.Set;
11import virustotalapi.ReportScan;
12import virustotalapi.VirusTotal;
13
14public class VirusTotalExample {
15
16
17 public static void main(String[] args) throws IOException {
18
19 VirusTotal VT = new VirusTotal("YOUR_API_KEY"); // Your Virus Total API Key
20
21 Set <ReportScan> Report = VT.ReportScan("2BD6A0833AC2855205AE0B7623AEFD233BA8D2FE59E54823CBBD9885E5DDFD60"); //The SHA256 file
22
23 for(ReportScan report : Report){
24
25 System.out.println("AV: "+report.getVendor()+" Detected: "+report.getDetected()+" Update: "+report.getUpdate()+" Malware Name: "+report.getMalwarename());
26
27 }
28
29
30 }
31}