Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package virustotalexample;
- /*
- *
- * @author Mauricio Correa
- *
- */
- import java.io.IOException;
- import java.util.Set;
- import virustotalapi.ReportFileScan;
- import virustotalapi.VirusTotal;
- public class VirusTotalExample {
- public static void main(String[] args) throws IOException {
- VirusTotal VT = new VirusTotal("YOUR_API_KEY"); // Your Virus Total API Key
- Set <ReportFileScan> Report = VT.sendFileScan("C:\\instaladorchrome.exe"); //pimpmywindow adware
- for(ReportFileScan report : Report){
- System.out.println("URL: "+report.getPermaLink()+" Response code: "+report.getResponseCode());
- }
- }
- }
- /*
- Result about code
- URL: "https://www.virustotal.com/file/c001e8e15cf1beedebd3a5dccd7d91fee6346a45c0051a84e2225283b0613e65/analysis/1359167138/" Response code: 1
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement