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']]
|
type_attribute = self.misp_mapping[obj['type']]
|
||||||
else:
|
else:
|
||||||
type_attribute = obj['type']
|
type_attribute = obj['type']
|
||||||
print(type_attribute)
|
|
||||||
if type_attribute == 'ip-src' or type_attribute == 'ip-dst':
|
if type_attribute == 'ip-src' or type_attribute == 'ip-dst':
|
||||||
return 'ip'
|
return 'ip'
|
||||||
elif 'domain' == type_attribute:
|
elif 'domain' == type_attribute:
|
||||||
|
@ -120,7 +119,7 @@ class Yeti():
|
||||||
elif 'hostname' == type_attribute:
|
elif 'hostname' == type_attribute:
|
||||||
return 'domain'
|
return 'domain'
|
||||||
elif type_attribute == 'url':
|
elif type_attribute == 'url':
|
||||||
return 'Url'
|
return type_attribute
|
||||||
|
|
||||||
|
|
||||||
def handler(q=False):
|
def handler(q=False):
|
||||||
|
|
Loading…
Reference in New Issue