Skip to content

Commit 7bcae2e

Browse files
committed
fix
1 parent 5818932 commit 7bcae2e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,8 @@ def get_iocs_from_string(
6161
if domain_val:
6262
iocs.domain.append(self.replace_dots_hxxp(domain_val))
6363
if not include_ioc_types or "url" in include_ioc_types:
64-
iocs.url.extend(
65-
[
66-
self.replace_dots_hxxp(url).rstrip(".")
67-
for url in self._find_all_str_by_regex(string, URL_IOC_REGEXP_PATTERN)
68-
]
69-
)
64+
for url in self._find_all_str_by_regex(string, URL_IOC_REGEXP_PATTERN):
65+
iocs.url.append(self.replace_dots_hxxp(url).rstrip("."))
7066
if not include_ioc_types or "hash" in include_ioc_types:
7167
if not include_hash_types:
7268
include_hash_types = list(hash_regexes.keys())

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