Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5818932

Browse files
committed
fix
1 parent16138fe commit5818932

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
ifnotinclude_ioc_typesor"ip"ininclude_ioc_types:
56-
iocs.ip.extend(self._find_all_str_by_regex(string,IP_IOC_REGEXP_PATTERN))
56+
foripinself._find_all_str_by_regex(string,IP_IOC_REGEXP_PATTERN):
57+
iocs.ip.append(self.replace_dots_hxxp(ip))
5758
ifnotinclude_ioc_typesor"domain"ininclude_ioc_types:
5859
fordomaininself._find_all_str_by_regex(string,DOMAIN_IOC_REGEXP_PATTERN):
5960
fordomain_valindomain:
6061
ifdomain_val:
61-
iocs.domain.extend(self.replace_dots_hxxp(domain_val))
62+
iocs.domain.append(self.replace_dots_hxxp(domain_val))
6263
ifnotinclude_ioc_typesor"url"ininclude_ioc_types:
6364
iocs.url.extend(
6465
[

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp