File tree 1 file changed +3
-2
lines changed
uncoder-core/app/translator/core
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,13 @@ def get_iocs_from_string(
53
53
) -> dict :
54
54
iocs = Iocs ()
55
55
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 ))
57
58
if not include_ioc_types or "domain" in include_ioc_types :
58
59
for domain in self ._find_all_str_by_regex (string , DOMAIN_IOC_REGEXP_PATTERN ):
59
60
for domain_val in domain :
60
61
if domain_val :
61
- iocs .domain .extend (self .replace_dots_hxxp (domain_val ))
62
+ iocs .domain .append (self .replace_dots_hxxp (domain_val ))
62
63
if not include_ioc_types or "url" in include_ioc_types :
63
64
iocs .url .extend (
64
65
[
You can’t perform that action at this time.
0 commit comments