a version of strings(1) that isn’t dependent on a linker. Dumps all strings of any given file.
Based off code provided by toybox
| import sys | |
| from pathlib import Path | |
| MH_MAGIC_64 = b'\xcf\xfa\xed\xfe' | |
| CPU_TYPE_ARM64 = b'\x0c\x00\x00\x01' | |
| CPU_SUBTYPE_IOS13 = b'\x02\x00\x00\x00' | |
| CPU_SUBTYPE_IOS14 = b'\x02\x00\x00\x80' | |
| IOS13_HEADER = MH_MAGIC_64 + CPU_TYPE_ARM64 + CPU_SUBTYPE_IOS13 | |
| IOS14_HEADER = MH_MAGIC_64 + CPU_TYPE_ARM64 + CPU_SUBTYPE_IOS14 |
| ================================== iphone11,2 =================================================== | |
| 14.4.1-14.2 | |
| key : 5a37b94ad2b79cb789ed930f0dff883ed0487a86151844450e0a197070647369e9691f5091c202ab8699939f31bf6c4a | |
| 18B92/14.2 | |
| key : aa0684897a2a372e7bcb0f26625a70142bdb671267af4d23a2ec851910c7e8641a738ce63c1fccc558b480baa0b086f2 | |
| #!/bin/sh | |
| defaults write com.apple.iTunesHelper ignore-devices -bool YES | |
| defaults write com.apple.AMPDeviceDiscoveryAgent ignore-devices 1 | |
| defaults write com.apple.AMPDeviceDiscoveryAgent reveal-devices 0 | |
| defaults write com.apple.MobileDeviceUpdater Disabled -bool YES | |
| defaults write -g ignore-devices -bool YES |
| { | |
| "mach_syscalls": [ | |
| { | |
| "number": 10, | |
| "arguments": [ | |
| "mach_port_name_t target", | |
| "mach_vm_address_t *address", | |
| "mach_vm_size_t size", | |
| "int flags" | |
| ], |
| #define kMGQ3GProximityCapability CFSTR("3GProximityCapability") | |
| #define kMGQ3GVeniceCapability CFSTR("3Gvenice") | |
| #define kMGQ720pPlaybackCapability CFSTR("720p") | |
| #define kMGQAPNCapability CFSTR("apn") | |
| #define kMGQARM64ExecutionCapability CFSTR("arm64") | |
| #define kMGQARM64eExecutionCapability CFSTR("arm64e") | |
| #define kMGQARMV6ExecutionCapability CFSTR("armv6") | |
| #define kMGQARMV7ExecutionCapability CFSTR("armv7") | |
| #define kMGQARMV7SExecutionCapability CFSTR("armv7s") | |
| #define kMGQAWDID CFSTR("AWDID") |
| #include <signal.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <execinfo.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // from dyld-interposing.h | |
| #define DYLD_INTERPOSE(_replacement,_replacee) __attribute__((used)) static struct{ const void* replacement; const void* replacee; } _interpose_##_replacee __attribute__ ((section ("__DATA,__interpose"))) = { (const void*)(unsigned long)&_replacement, (const void*)(unsigned long)&_replacee }; |
| // | |
| // main.m | |
| // platform_swap @LOLgrep | |
| // | |
| #import <Foundation/Foundation.h> | |
| #import <mach-o/loader.h> | |
| #define PLATFORM_VISIONOS 11 | |
| #define PLATFORM_VISIONOSSIMULATOR 12 |
| /* | |
| * Copyright (C) 2023 Daniel Levi | |
| * | |
| * Alternate version | |
| * | |
| */ | |
| #pragma once | |
| #include <CoreFoundation/CoreFoundation.h> |
| // cc reachable_services_get.m -o reachable_services_get -framework Foundation | |
| #import <Foundation/Foundation.h> | |
| #import <servers/bootstrap.h> | |
| void enumerateMachServices() { | |
| NSDictionary<NSString*, id>* dict = [NSDictionary dictionaryWithContentsOfFile:@"/System/Library/xpc/launchd.plist"]; | |
| NSDictionary<NSString*, id>* launchDaemons = dict[@"LaunchDaemons"]; | |
| for (NSString* key in launchDaemons) { | |
| NSDictionary<NSString*, id>* job = launchDaemons[key]; |
a version of strings(1) that isn’t dependent on a linker. Dumps all strings of any given file.
Based off code provided by toybox