mirror of https://github.com/MISP/misp-modules
parent
33bba708bf
commit
294bdee51a
|
@ -77,11 +77,11 @@ def handler(q=False):
|
||||||
apikey = request['config']['apikey']
|
apikey = request['config']['apikey']
|
||||||
if apikey and yeti_url:
|
if apikey and yeti_url:
|
||||||
yeti_client = Yeti(yeti_url,apikey)
|
yeti_client = Yeti(yeti_url,apikey)
|
||||||
if request.get('ip-dst'):
|
if request.get('attribute'):
|
||||||
obs_value = request['ip-dst']
|
attribute = request['attribute']
|
||||||
|
|
||||||
if yeti_client:
|
if yeti_client:
|
||||||
obs = yeti_client.search(obs_value)
|
obs = yeti_client.search(attribute['value'])
|
||||||
values = []
|
values = []
|
||||||
types = []
|
types = []
|
||||||
to_push = {"results": []}
|
to_push = {"results": []}
|
||||||
|
|
Loading…
Reference in New Issue