Skip to content

Instantly share code, notes, and snippets.

@stanwu
Created April 10, 2016 08:07
Show Gist options
  • Select an option

  • Save stanwu/dac210a980c9a4e8caba3ba8917b1f39 to your computer and use it in GitHub Desktop.

Select an option

Save stanwu/dac210a980c9a4e8caba3ba8917b1f39 to your computer and use it in GitHub Desktop.
get the report from virustotal
import simplejson
import urllib
import urllib2
url = "https://www.virustotal.com/vtapi/v2/file/report"
parameters = {"resource": "bebe9e7d7c6272f423af69efc04d17e2,4f5e7847a12a0c97308e31cdf384c727,....multi-hash", "apikey": "--put your key here---"}
data = urllib.urlencode(parameters)
req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
json = response.read()
print json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment