mirror of https://github.com/MISP/misp-modules
parent
1dfdb5a2a2
commit
bd5c1b0b53
|
@ -69,7 +69,6 @@ class Yeti():
|
||||||
obs = self.search(self.attribute['value'])
|
obs = self.search(self.attribute['value'])
|
||||||
values = []
|
values = []
|
||||||
types = []
|
types = []
|
||||||
self.misp_event.add_attribute(**self.attribute)
|
|
||||||
for obs_to_add in self.get_neighboors(obs['id']):
|
for obs_to_add in self.get_neighboors(obs['id']):
|
||||||
object_misp = self.get_object(obs_to_add)
|
object_misp = self.get_object(obs_to_add)
|
||||||
self.misp_event.add_object(object_misp)
|
self.misp_event.add_object(object_misp)
|
||||||
|
@ -87,7 +86,7 @@ class Yeti():
|
||||||
domain_ip_object.add_attribute(**self.__get_attribute(obj_to_add))
|
domain_ip_object.add_attribute(**self.__get_attribute(obj_to_add))
|
||||||
domain_ip_object.add_reference(self.attribute['uuid'], 'related_to')
|
domain_ip_object.add_reference(self.attribute['uuid'], 'related_to')
|
||||||
domain_ip_object.add_attribute(**self.attribute)
|
domain_ip_object.add_attribute(**self.attribute)
|
||||||
print(domain_ip_object)
|
print(type(domain_ip_object))
|
||||||
return domain_ip_object
|
return domain_ip_object
|
||||||
|
|
||||||
def __get_attribute(self, obj_yeti):
|
def __get_attribute(self, obj_yeti):
|
||||||
|
@ -105,6 +104,7 @@ class Yeti():
|
||||||
print('Attribute %s' % attr_misp)
|
print('Attribute %s' % attr_misp)
|
||||||
return attr_misp
|
return attr_misp
|
||||||
|
|
||||||
|
|
||||||
def handler(q=False):
|
def handler(q=False):
|
||||||
if q is False:
|
if q is False:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue