def fetch_crowdstrike_iocs():
    """
    returns indicators of compromise from the crodwstrike api
    """

    query_filter = get_query_filter()

    response = requests.get(
        url=f"{CROWDSTRIKE_BASE_URL}/intel/combined/indicators/v1",
        params={"filter": query_filter, "sort": "_marker|asc"},
        headers={
            "Authorization": f"Bearer {CrowdStrikeToken.get_token()}",
        },
    )

    if response.status_code not in (200, 201):
        logging.error(f"Error Code: {response.status_code}")
        logging.error(f"Error Response: {response.text}")
        raise APIError(response.text)
    elif response.status_code == 401:
        logging.error(f"Error Code: {response.status_code}")
        logging.error(f"Error Response: {response.text}")
        raise UnauthorizedTokenException(response.text)

    batch = json.loads(response.text)["resources"]
    marker = batch[-1]["_marker"]

    while len(batch) > 0:
        yield batch, marker

        if "Next-Page" not in response.headers:
            break
        else:
            response = requests.get(
                url=f"{CROWDSTRIKE_BASE_URL}/{response.headers['Next-Page']}",
                headers={
                    "Authorization": f"Bearer {CrowdStrikeToken.get_token()}",
                    "User-Agent": USER_AGENT,
                },
            )

            if response.status_code not in (200, 201):
                logging.error(f"Error Code: {response.status_code}")
                logging.error(f"Error Response: {response.text}")
                raise APIError(response.text)
            elif response.status_code == 401:
                logging.error(f"Error Code: {response.status_code}")
                logging.error(f"Error Response: {response.text}")
                raise UnauthorizedTokenException(response.text)

            batch = json.loads(response.text)["resources"]
            marker = batch[-1]["_marker"]

    returns indicators of compromise from the crodwstrike api
    
Solutions/CrowdStrike Falcon Endpoint Protection/Data Connectors/CrowdStrikeFalconAdversaryIntelligence/CrowdStrikeFalconThreatIntelConnector/__init__.py