We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent5818932 commit7bcae2eCopy full SHA for 7bcae2e
uncoder-core/app/translator/core/parser_cti.py
@@ -61,12 +61,8 @@ def get_iocs_from_string(
61
ifdomain_val:
62
iocs.domain.append(self.replace_dots_hxxp(domain_val))
63
ifnotinclude_ioc_typesor"url"ininclude_ioc_types:
64
-iocs.url.extend(
65
- [
66
-self.replace_dots_hxxp(url).rstrip(".")
67
-forurlinself._find_all_str_by_regex(string,URL_IOC_REGEXP_PATTERN)
68
- ]
69
- )
+forurlinself._find_all_str_by_regex(string,URL_IOC_REGEXP_PATTERN):
+iocs.url.append(self.replace_dots_hxxp(url).rstrip("."))
70
ifnotinclude_ioc_typesor"hash"ininclude_ioc_types:
71
ifnotinclude_hash_types:
72
include_hash_types=list(hash_regexes.keys())