Update yeti.py

remove tags and entity
pull/488/head
Sebdraven 2021-04-21 15:40:46 +02:00
parent a277cbb8bf
commit a76978d6c6
1 changed files with 0 additions and 25 deletions

View File

@ -47,31 +47,6 @@ class Yeti():
for n in neighboors['objs']: for n in neighboors['objs']:
yield n, links_by_id[n['id']] yield n, links_by_id[n['id']]
def get_tags(self, value):
obs = self.search(value)
if obs:
for t in obs['tags']:
yield t
def get_entity(self, obs_id):
companies = self.yeti_client.observable_to_company(obs_id)
actors = self.yeti_client.observable_to_actor(obs_id)
campaigns = self.yeti_client.observable_to_campaign(obs_id)
exploit_kit = self.yeti_client.observable_to_exploitkit(obs_id)
exploit = self.yeti_client.observable_to_exploit(obs_id)
ind = self.yeti_client.observable_to_indicator(obs_id)
res = []
res.extend(companies)
res.extend(actors)
res.extend(campaigns)
res.extend(exploit)
res.extend(exploit_kit)
res.extend(ind)
for r in res:
yield r['name']
def parse_yeti_result(self): def parse_yeti_result(self):
obs = self.search(self.attribute['value']) obs = self.search(self.attribute['value'])
values = [] values = []