Skip to content

Commit 5818932

Browse files
committed
fix
1 parent 16138fe commit 5818932

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

uncoder-core/app/translator/core/parser_cti.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ def get_iocs_from_string(
5353
) -> dict:
5454
iocs = Iocs()
5555
if not include_ioc_types or "ip" in include_ioc_types:
56-
iocs.ip.extend(self._find_all_str_by_regex(string, IP_IOC_REGEXP_PATTERN))
56+
for ip in self._find_all_str_by_regex(string, IP_IOC_REGEXP_PATTERN):
57+
iocs.ip.append(self.replace_dots_hxxp(ip))
5758
if not include_ioc_types or "domain" in include_ioc_types:
5859
for domain in self._find_all_str_by_regex(string, DOMAIN_IOC_REGEXP_PATTERN):
5960
for domain_val in domain:
6061
if domain_val:
61-
iocs.domain.extend(self.replace_dots_hxxp(domain_val))
62+
iocs.domain.append(self.replace_dots_hxxp(domain_val))
6263
if not include_ioc_types or "url" in include_ioc_types:
6364
iocs.url.extend(
6465
[

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy