This script hooks into macOS amfid to grant restricted entitlements to selected executables. Tested on macOS 15.4.
Only disabling Debugging Restrictions (ALLOW_TASK_FOR_PID) is
required and other SIP restrictions can be left enabled:
| // ConsumerKeys.swift | |
| // Boot-protocol keyboard that reports keycodes in Consumer page (0x0C). | |
| // iOS maps consumer page usages received this way to system actions. | |
| import Foundation | |
| public final class ConsumerKeys: SyntheticHID { | |
| // MARK: - Consumer usages sent as boot-keyboard keycodes (page 0x0C, ≤ 0xFF) |
| import Dynamic | |
| import Foundation | |
| import IOKit | |
| import Virtualization | |
| enum PassthroughError: Error { | |
| case deviceNotFound(vendor: Int, product: Int) | |
| case failedToCreateDeviceConfig(underlyingError: Error?) | |
| case failedToCreateDevice(underlyingError: Error?) | |
| case failedToAttachDevice(underlyingError: Error) |
| #!/usr/bin/env python3 | |
| import csv | |
| import sys | |
| import requests | |
| from typing import Dict, Any, Optional | |
| # Configuration | |
| BASE_URL = "https://scorify.local" | |
| GRAPHQL_URL = f"{BASE_URL}/api/query" |
| #!/usr/bin/env python3 | |
| import argparse | |
| import json | |
| import time | |
| import threading | |
| from datetime import datetime, timezone | |
| from typing import Dict, Any, Tuple, List | |
| import pika | |
| from pika.adapters.blocking_connection import BlockingChannel |
| import sys | |
| import json | |
| import plistlib | |
| import requests | |
| import zipfile | |
| from io import BytesIO | |
| try: | |
| from rich import print | |
| except ImportError: | |
| print=print |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # Configuration | |
| CONFIG_ID="8da72a14ba6942ac904c2f028aada7cb" # Simlessly eSIM config ID | |
| CBRS_PREFIX="315010" # CBRS MCC+MNC per your request | |
| CBRS_IBN="9999" # CBRS IBN for testing/shared | |
| DEFAULT_KI="$(printf 'A%.0s' {1..32})" # 32 hex chars of 'A' -> 16 bytes (testing) | |
| DEFAULT_OPC="$(printf 'A%.0s' {1..32})" # same for OPc |
| import requests | |
| import json | |
| import rich | |
| from bs4 import BeautifulSoup, Tag | |
| DEALER_STORE_ID=1405 # You can pretty much pick any dealer | |
| CATALOG_ID=251 # Not sure | |
| def get_wc_cookies(): | |
| # curl -L 'https://parts.ford.com/shop/AjaxManageUserVehicles' -H 'Content-Type: application/x-www-form-urlencoded' -d 'storeId=1405' |
| import serial | |
| from serial.tools import list_ports | |
| import time | |
| class CANError(Exception): | |
| """Custom exception for CAN-related errors.""" | |
| pass | |
| class ELM327: | |
| def __init__(self, port, baud): |
| import requests | |
| import webview | |
| import time | |
| from xml.etree import ElementTree as ET | |
| def login(): | |
| # Open a WebView to https://www.fdspcl.dealerconnection.com/NonDealerLogin?accountCountry=USA&accountLanguage=EN | |
| # and wait for it to redirect to https://www.fdspcl.dealerconnection.com/AuthorizeNonDealer | |
| # and then get a FDRS cookie |