Created
April 10, 2016 08:07
-
-
Save stanwu/dac210a980c9a4e8caba3ba8917b1f39 to your computer and use it in GitHub Desktop.
get the report from virustotal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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