File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,11 @@ def __init__(self):
121
121
"shodan: isp" : self .ip_to_shodan_isp ,
122
122
"shodan: city" : self .ip_to_shodan_city ,
123
123
"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
+ })
124
129
125
130
def is_ip_address (self , _input : str ):
126
131
"""Validates if _input is ip address"""
@@ -218,6 +223,9 @@ def ip_to_shodan_asn(self, ip:str):
218
223
except Exception as e :
219
224
return ["shodan api error: " , e ]
220
225
226
+ def ip_to_vt_report (self , ip :str ):
227
+ """Searches virustotal to return an ip report"""
228
+
221
229
class EmailAddress (object ):
222
230
"""Email address handler class"""
223
231
def __init__ (self ):
You can’t perform that action at this time.
0 commit comments