Skip to content

Commit

Permalink
fix for virus total (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
malwareowl authored and nadouani committed Dec 25, 2019
1 parent 89e2c92 commit 7bfc359
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/VirusTotal/VirusTotal_GetReport.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "Get the latest VirusTotal report for a file, hash, domain or an IP address.",
"dataTypeList": ["file", "hash", "domain", "ip", "url"],
"dataTypeList": ["file", "hash", "domain","fqdn", "ip", "url"],
"command": "VirusTotal/virustotal.py",
"baseConfig": "VirusTotal",
"config": {
Expand Down
4 changes: 4 additions & 0 deletions analyzers/VirusTotal/virustotal.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ def run(self):
data = self.get_param('data', None, 'Data is missing')
self.report(self.check_response(
self.vt.get_domain_report(data)))
elif self.data_type == 'fqdn';
data = self.get_param('data', None, 'Data is missing')
self.report(self.check_response(
self.vt.get_domain_report(data)))
elif self.data_type == 'ip':
data = self.get_param('data', None, 'Data is missing')
self.report(self.check_response(self.vt.get_ip_report(data)))
Expand Down

0 comments on commit 7bfc359

Please sign in to comment.