mirror of https://github.com/MISP/misp-modules
parent
be212097a7
commit
4634567b23
|
@ -112,7 +112,6 @@ class Yeti():
|
|||
type_attribute = self.misp_mapping[obj['type']]
|
||||
else:
|
||||
type_attribute = obj['type']
|
||||
print(type_attribute)
|
||||
if type_attribute == 'ip-src' or type_attribute == 'ip-dst':
|
||||
return 'ip'
|
||||
elif 'domain' == type_attribute:
|
||||
|
@ -120,7 +119,7 @@ class Yeti():
|
|||
elif 'hostname' == type_attribute:
|
||||
return 'domain'
|
||||
elif type_attribute == 'url':
|
||||
return 'Url'
|
||||
return type_attribute
|
||||
|
||||
|
||||
def handler(q=False):
|
||||
|
|
Loading…
Reference in New Issue