Update yeti.py

correct bug
pull/488/head
Sebdraven 2021-04-19 11:09:38 +02:00
parent be212097a7
commit 4634567b23
1 changed files with 1 additions and 2 deletions

View File

@ -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):