mirror of https://github.com/MISP/misp-modules
parent
9eb41f4022
commit
0a364cf815
|
@ -96,12 +96,11 @@ class Yeti():
|
||||||
attr_misp['object_relation'].update({'type': 'text',
|
attr_misp['object_relation'].update({'type': 'text',
|
||||||
'object_relation': 'ip'})
|
'object_relation': 'ip'})
|
||||||
elif 'domain' == typ_attribute:
|
elif 'domain' == typ_attribute:
|
||||||
attr_misp.update({'type': 'text',
|
attr_misp.update({'type': 'domain',
|
||||||
'object_relation': 'domain'})
|
'object_relation': 'domain'})
|
||||||
elif 'hostname' == typ_attribute:
|
elif 'hostname' == typ_attribute:
|
||||||
attr_misp.update({'type': 'text',
|
attr_misp.update({'type': 'domain',
|
||||||
'object_relation': 'domain'})
|
'object_relation': 'domain'})
|
||||||
attr_misp['type'] = 'domain'
|
|
||||||
else:
|
else:
|
||||||
attr_misp['object_relation'] = None
|
attr_misp['object_relation'] = None
|
||||||
print('Attribute %s' % attr_misp)
|
print('Attribute %s' % attr_misp)
|
||||||
|
|
Loading…
Reference in New Issue