Skip to content

Commit

Permalink
Use VirusTotal with python3
Browse files Browse the repository at this point in the history
  • Loading branch information
jcz committed Mar 26, 2019
1 parent 9cb7dcf commit 97a1ff4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion analyzers/VirusTotal/virustotal.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def check_response(self, response):
self.error('Bad status : ' + str(status))
results = response.get('results', {})
if 'verbose_msg' in results:
print >> sys.stderr, str(results.get('verbose_msg'))
print (str(results.get('verbose_msg')), sys.stderr)
if 'Missing IP address' in results.get('verbose_msg', ''):
results['verbose_msg'] = 'IP address not available in VirusTotal'
return results
Expand Down
3 changes: 2 additions & 1 deletion analyzers/VirusTotal/virustotal_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
"""

import os
import StringIO
try:
import requests
import StringIO
except ImportError:
from io import StringIO
pass


Expand Down

0 comments on commit 97a1ff4

Please sign in to comment.