daily pastebin goal
17%
SHARE
TWEET

VirusTotalAPI Get Report Scan Example

MauricioCorrea Jan 25th, 2013 2,173 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package virustotalexample;
  2.  
  3. /*
  4.  *
  5.  * @author Mauricio Correa
  6.  *
  7.  */
  8.  
  9. import java.io.IOException;
  10. import java.util.Set;
  11. import virustotalapi.ReportScan;
  12. import virustotalapi.VirusTotal;
  13.  
  14. public 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. }
  32.  
  33.  
  34.  
  35.  
  36. /*
  37.  
  38. Response above code:
  39.  
  40. AV: ByteHero Detected: false Update: "20130118" Malware Name: null
  41. AV: Jiangmin Detected: false Update: "20121221" Malware Name: null
  42. AV: TrendMicro-HouseCall Detected: true Update: "20130120" Malware Name: "TROJ_GEN.RCBH1KJ"
  43. AV: VBA32 Detected: false Update: "20130118" Malware Name: null
  44. AV: Panda Detected: false Update: "20130119" Malware Name: null
  45. AV: AntiVir Detected: true Update: "20130119" Malware Name: "Adware/Babylon.C"
  46. AV: Microsoft Detected: false Update: "20130120" Malware Name: null
  47. AV: Sophos Detected: false Update: "20130120" Malware Name: null
  48. AV: ClamAV Detected: false Update: "20130120" Malware Name: null
  49. AV: DrWeb Detected: true Update: "20130120" Malware Name: "Adware.Downware.437"
  50. AV: NANO-Antivirus Detected: false Update: "20130120" Malware Name: null
  51. AV: VIPRE Detected: false Update: "20130120" Malware Name: null
  52. AV: Norman Detected: false Update: "20130119" Malware Name: null
  53. AV: MicroWorld-eScan Detected: false Update: "20130120" Malware Name: null
  54. AV: eSafe Detected: false Update: "20130116" Malware Name: null
  55. AV: PCTools Detected: false Update: "20130120" Malware Name: null
  56. AV: K7AntiVirus Detected: false Update: "20130119" Malware Name: null
  57. AV: Fortinet Detected: false Update: "20130120" Malware Name: null
  58. AV: TrendMicro Detected: false Update: "20130120" Malware Name: null
  59. AV: Antiy-AVL Detected: false Update: "20130119" Malware Name: null
  60. AV: AhnLab-V3 Detected: false Update: "20130119" Malware Name: null
  61. AV: Kaspersky Detected: false Update: "20130119" Malware Name: null
  62. AV: Rising Detected: false Update: "20130117" Malware Name: null
  63. AV: McAfee-GW-Edition Detected: false Update: "20130120" Malware Name: null
  64. AV: Commtouch Detected: false Update: "20130120" Malware Name: null
  65. AV: F-Secure Detected: false Update: "20130119" Malware Name: null
  66. AV: Agnitum Detected: false Update: "20130119" Malware Name: null
  67. AV: ViRobot Detected: false Update: "20130119" Malware Name: null
  68. AV: nProtect Detected: false Update: "20130120" Malware Name: null
  69. AV: Avast Detected: false Update: "20130120" Malware Name: null
  70. AV: GData Detected: false Update: "20130120" Malware Name: null
  71. AV: BitDefender Detected: false Update: "20130120" Malware Name: null
  72. AV: Kingsoft Detected: true Update: "20130115" Malware Name: "Win32.Troj.Generic.a.(kcloud)"
  73. AV: Symantec Detected: false Update: "20130120" Malware Name: null
  74. AV: McAfee Detected: false Update: "20130120" Malware Name: null
  75. AV: AVG Detected: false Update: "20130119" Malware Name: null
  76. AV: SUPERAntiSpyware Detected: false Update: "20130119" Malware Name: null
  77. AV: F-Prot Detected: false Update: "20130120" Malware Name: null
  78. AV: TotalDefense Detected: false Update: "20130118" Malware Name: null
  79. AV: CAT-QuickHeal Detected: false Update: "20130119" Malware Name: null
  80. AV: TheHacker Detected: false Update: "20130119" Malware Name: null
  81. AV: Comodo Detected: false Update: "20130120" Malware Name: null
  82. AV: Ikarus Detected: false Update: "20130120" Malware Name: null
  83. AV: Emsisoft Detected: false Update: "20130119" Malware Name: null
  84. AV: Malwarebytes Detected: false Update: "20130120" Malware Name: null
  85. AV: ESET-NOD32 Detected: false Update: "20130119" Malware Name: null
  86.  
  87.  
  88. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top