We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5818932 commit 7bcae2eCopy full SHA for 7bcae2e
uncoder-core/app/translator/core/parser_cti.py
@@ -61,12 +61,8 @@ def get_iocs_from_string(
61
if domain_val:
62
iocs.domain.append(self.replace_dots_hxxp(domain_val))
63
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
- )
+ for url in self._find_all_str_by_regex(string, URL_IOC_REGEXP_PATTERN):
+ iocs.url.append(self.replace_dots_hxxp(url).rstrip("."))
70
if not include_ioc_types or "hash" in include_ioc_types:
71
if not include_hash_types:
72
include_hash_types = list(hash_regexes.keys())
0 commit comments