Skip to content

Commit 70744bd

Browse files
author
netevert
committed
began virustotal integration
1 parent 1d4e01c commit 70744bd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ def __init__(self):
121121
"shodan: isp": self.ip_to_shodan_isp,
122122
"shodan: city": self.ip_to_shodan_city,
123123
"shodan: asn": self.ip_to_shodan_asn})
124+
virustotal_api_key = self.api_db.get_api_key("virustotal")
125+
if virustotal_api_key:
126+
self.osint_options.update({
127+
"virustotal: report": self.ip_to_vt_report
128+
})
124129

125130
def is_ip_address(self, _input: str):
126131
"""Validates if _input is ip address"""
@@ -218,6 +223,9 @@ def ip_to_shodan_asn(self, ip:str):
218223
except Exception as e:
219224
return ["shodan api error: ", e]
220225

226+
def ip_to_vt_report(self, ip:str):
227+
"""Searches virustotal to return an ip report"""
228+
221229
class EmailAddress(object):
222230
"""Email address handler class"""
223231
def __init__(self):

0 commit comments

Comments
 (0)