Modifying ip4addr & ip6addr types

This commit is contained in:
Félix Aime 2021-06-09 09:27:30 +02:00
parent 73ee7a280b
commit 691a413bfb

View File

@ -148,9 +148,9 @@ class MISP(object):
# Deduce the IOC type.
if re.match(defs["iocs_types"][0]["regex"], attr["value"]):
ioc["type"] = "ipv4addr"
ioc["type"] = "ip4addr"
elif re.match(defs["iocs_types"][1]["regex"], attr["value"]):
ioc["type"] = "ipv6addr"
ioc["type"] = "ip6addr"
elif re.match(defs["iocs_types"][3]["regex"], attr["value"]):
ioc["type"] = "domain"
elif re.match(defs["iocs_types"][4]["regex"], attr["value"]):