Skip to content

Commit

Permalink
Added missing requirements to VT analyzer and changed "missing IP" ou…
Browse files Browse the repository at this point in the history
…tput
  • Loading branch information
3c7 committed Oct 21, 2018
1 parent 0961f83 commit 8392531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions analyzers/VirusTotal/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
cortexutils
future
requests
2 changes: 2 additions & 0 deletions analyzers/VirusTotal/virustotal.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def check_response(self, response):
results = response.get('results', {})
if 'verbose_msg' in results:
print >> sys.stderr, str(results.get('verbose_msg'))
if 'Missing IP address' in results.get('verbose_msg', ''):
results['verbose_msg'] = 'IP address not available in VirusTotal'
return results

# 0 => not found
Expand Down

0 comments on commit 8392531

Please sign in to comment.