This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <mach/mach.h> | |
#import <stdio.h> | |
#import <stdlib.h> | |
#import <string.h> | |
#include <libkern/OSCacheControl.h> | |
const int REGION_SIZE = 0x4000*1; | |
void write_instructions(void* page) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <mach/mach.h> | |
#import <stdio.h> | |
#import <stdlib.h> | |
#import <string.h> | |
#define PAGE 0x4000 | |
__attribute__((section("__TEXT,__nop_section"), aligned(PAGE))) | |
static const uint32_t nop_page[PAGE / sizeof(uint32_t)] = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Configuration | |
password="XTYTH3CP2" # Set your password here | |
timeout_duration=10 # Set timeout duration in seconds | |
# Change into a temporary directory, storing the current directory | |
current_dir=$(pwd) | |
cd "$(mktemp -d)" || exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if the script is being run as root | |
if [[ $(id -u) -ne 0 ]]; then | |
echo "This script must be run as root. Exiting." | |
exit 1 | |
fi | |
# Install necessary tools (msr-tools) | |
echo "Installing msr-tools..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import hashlib | |
import hmac | |
import plistlib | |
from pathlib import Path | |
import keyring | |
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
from cryptography.hazmat.primitives.padding import PKCS7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import json | |
import logging | |
import plistlib | |
import random | |
import uuid | |
from datetime import datetime | |
import requests | |
import urllib3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from io import BytesIO | |
from typing import Self | |
from dataclasses import dataclass | |
FLAG_CATALOG = 0x40000000 | |
ALL_FLAGS = FLAG_CATALOG | |
@dataclass | |
class CSUnit: | |
id: int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@self.hook() | |
def _bootstrap_check_in(bootstrap_port: int, sn: int, sp: int): | |
service_name = c_string(self._uc.mem_read(sn, 0x100)) | |
self.debug(f"bootstrap_check_in {hex(bootstrap_port)} {service_name} {hex(sp)}") | |
port = self.mach_ports.create_mach_port_with_name(service_name) | |
self._uc.mem_write(sp, port.to_bytes(4, byteorder='little')) | |
return 0 | |
@self.hook() | |
def _CFMachPortCreateWithPort(allocator: int, port: int, callout: int, context: int, shouldFreeInfo: int): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
struct psem_fdinfo { | |
struct proc_fileinfo { | |
var fi_openflags: UInt32 | |
var fi_status: UInt32 | |
var fi_offset: Int64 | |
var fi_type: Int32 | |
var fi_guardflags: UInt32 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from rich import print | |
from rich.progress import track, Progress | |
from rich.prompt import Prompt | |
from rich.console import Console | |
from rich.table import Table | |
import zipfile | |
import os | |
import threading | |
import io |
NewerOlder