mirror of https://github.com/MISP/mail_to_misp
fix: Support new version of pyfaup
parent
28326e37a9
commit
58ea8a64ca
|
@ -228,20 +228,20 @@ class Mail2MISP():
|
||||||
ids_flag = True
|
ids_flag = True
|
||||||
self.f.decode(entry)
|
self.f.decode(entry)
|
||||||
|
|
||||||
domainname = self.f.get_domain().decode()
|
domainname = self.f.get_domain()
|
||||||
if domainname in self.config.excludelist:
|
if domainname in self.config.excludelist:
|
||||||
# Ignore the entry
|
# Ignore the entry
|
||||||
continue
|
continue
|
||||||
|
|
||||||
hostname = self.f.get_host().decode()
|
hostname = self.f.get_host()
|
||||||
|
|
||||||
scheme = self.f.get_scheme()
|
scheme = self.f.get_scheme()
|
||||||
if scheme:
|
if scheme:
|
||||||
scheme = scheme.decode()
|
scheme = scheme
|
||||||
|
|
||||||
resource_path = self.f.get_resource_path()
|
resource_path = self.f.get_resource_path()
|
||||||
if resource_path:
|
if resource_path:
|
||||||
resource_path = resource_path.decode()
|
resource_path = resource_path
|
||||||
|
|
||||||
if self.debug:
|
if self.debug:
|
||||||
syslog.syslog(domainname)
|
syslog.syslog(domainname)
|
||||||
|
@ -298,7 +298,7 @@ class Mail2MISP():
|
||||||
comment = ''
|
comment = ''
|
||||||
port = self.f.get_port()
|
port = self.f.get_port()
|
||||||
if port:
|
if port:
|
||||||
port = port.decode()
|
port = port
|
||||||
comment = f'on port: {port}'
|
comment = f'on port: {port}'
|
||||||
|
|
||||||
if is_ip(hostname):
|
if is_ip(hostname):
|
||||||
|
|
Loading…
Reference in New Issue