Skip to content

Commit 190db02

Browse files
committed
Added source_ip support for Ioc`s
1 parent 2112735 commit 190db02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

translator/app/translator/cti_translator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ def __render_translation(self, parsed_data: dict, platform_data: CTIPlatform, io
4141

4242
def convert(self, text: str,
4343
platform_data: CTIPlatform,
44-
iocs_per_query: int = CTI_IOCS_PER_QUERY_LIMIT,
44+
iocs_per_query: int = None,
4545
include_ioc_types: list = None,
4646
include_hash_types: list = None,
4747
exceptions: list = None,
4848
ioc_parsing_rules: list = None,
4949
include_source_ip: bool = False) -> (bool, List[str]):
50-
if not iocs_per_query: iocs_per_query = CTI_IOCS_PER_QUERY_LIMIT
50+
if not iocs_per_query:
51+
iocs_per_query = CTI_IOCS_PER_QUERY_LIMIT
5152
status, parsed_data = self.__parse_iocs_from_string(text=text,
5253
include_ioc_types=include_ioc_types,
5354
include_hash_types=include_hash_types,

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