From bf617807df0c917dd699846393be52a4b1f161f6 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Fri, 5 Mar 2021 15:19:30 +0100 Subject: [PATCH] Update yeti.py modify acess dict --- misp_modules/modules/expansion/yeti.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/misp_modules/modules/expansion/yeti.py b/misp_modules/modules/expansion/yeti.py index 828de47..f0f8099 100644 --- a/misp_modules/modules/expansion/yeti.py +++ b/misp_modules/modules/expansion/yeti.py @@ -31,7 +31,7 @@ class Yeti(): def get_neighboors(self, obs_id): neighboors = self.yeti_client.neighbors_observables(obs_id) if neighboors and 'objs' in neighboors: - for n in neighboors: + for n in neighboors['objs']: yield n def get_tags(self, value): @@ -69,7 +69,6 @@ def handler(q=False): yeti_client = None request = json.loads(q) - print(request) if 'config' in request and 'url' in request['config']: yeti_url = request['config']['url'] @@ -82,7 +81,6 @@ def handler(q=False): if yeti_client: obs = yeti_client.search(obs_value) - print(obs) values = [] types = [] to_push = {"results": []}