mirror of https://github.com/MISP/misp-modules
parent
4634567b23
commit
a29779eff6
|
@ -100,9 +100,16 @@ class Yeti():
|
||||||
obj_to_add['type'] in ('Hostname', 'Domain', 'Ip') and self.attribute['type'] == 'url'
|
obj_to_add['type'] in ('Hostname', 'Domain', 'Ip') and self.attribute['type'] == 'url'
|
||||||
):
|
):
|
||||||
url_object = MISPObject('Url')
|
url_object = MISPObject('Url')
|
||||||
|
obj_relation = self.__get_relation(obj_to_add)
|
||||||
|
if obj_relation:
|
||||||
|
print(obj_relation)
|
||||||
url_object.add_attribute(self.__get_relation(obj_to_add), obj_to_add['value'])
|
url_object.add_attribute(self.__get_relation(obj_to_add), obj_to_add['value'])
|
||||||
|
obj_relation = self.__get_relation(self.attribute)
|
||||||
|
if obj_relation:
|
||||||
|
print(obj_relation)
|
||||||
url_object.add_attribute(self.__get_relation(self.attribute),
|
url_object.add_attribute(self.__get_relation(self.attribute),
|
||||||
self.attribute['value'])
|
self.attribute['value'])
|
||||||
|
|
||||||
url_object.add_reference(self.attribute['uuid'], 'related_to')
|
url_object.add_reference(self.attribute['uuid'], 'related_to')
|
||||||
print(url_object)
|
print(url_object)
|
||||||
return url_object
|
return url_object
|
||||||
|
|
Loading…
Reference in New Issue