mirror of https://github.com/MISP/misp-modules
parent
9de5dd89ee
commit
bf617807df
|
@ -31,7 +31,7 @@ class Yeti():
|
||||||
def get_neighboors(self, obs_id):
|
def get_neighboors(self, obs_id):
|
||||||
neighboors = self.yeti_client.neighbors_observables(obs_id)
|
neighboors = self.yeti_client.neighbors_observables(obs_id)
|
||||||
if neighboors and 'objs' in neighboors:
|
if neighboors and 'objs' in neighboors:
|
||||||
for n in neighboors:
|
for n in neighboors['objs']:
|
||||||
yield n
|
yield n
|
||||||
|
|
||||||
def get_tags(self, value):
|
def get_tags(self, value):
|
||||||
|
@ -69,7 +69,6 @@ def handler(q=False):
|
||||||
yeti_client = None
|
yeti_client = None
|
||||||
|
|
||||||
request = json.loads(q)
|
request = json.loads(q)
|
||||||
print(request)
|
|
||||||
|
|
||||||
if 'config' in request and 'url' in request['config']:
|
if 'config' in request and 'url' in request['config']:
|
||||||
yeti_url = request['config']['url']
|
yeti_url = request['config']['url']
|
||||||
|
@ -82,7 +81,6 @@ def handler(q=False):
|
||||||
|
|
||||||
if yeti_client:
|
if yeti_client:
|
||||||
obs = yeti_client.search(obs_value)
|
obs = yeti_client.search(obs_value)
|
||||||
print(obs)
|
|
||||||
values = []
|
values = []
|
||||||
types = []
|
types = []
|
||||||
to_push = {"results": []}
|
to_push = {"results": []}
|
||||||
|
|
Loading…
Reference in New Issue