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 Darwin; | |
@import Foundation; | |
@import MachO; | |
#import <mach-o/fixup-chains.h> | |
// you'll need helpers.m from Ian Beer's write_no_write and vm_unaligned_copy_switch_race.m from | |
// WDBFontOverwrite | |
// Also, set an NSAppleMusicUsageDescription in Info.plist (can be anything) | |
// Please don't call this code on iOS 14 or below | |
// (This temporarily overwrites tccd, and on iOS 14 and above changes do not revert on reboot) |
// | |
// MIT License | |
// | |
// Copyright (c) 2024 Derek Selander | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
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
// 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]; |
/* | |
* Copyright (C) 2023 Daniel Levi | |
* | |
* Originally based on Apple's header for WebKit. The file within this repo | |
* named LICENSE_APPLE contains the copyright notice provided by Apple | |
* | |
* This header is based on my own disassembly of libMobileGestalt and contains | |
* 760 keys that should support any iOS version up until iOS 17. | |
* | |
*/ |
// | |
// main.m | |
// platform_swap @LOLgrep | |
// | |
#import <Foundation/Foundation.h> | |
#import <mach-o/loader.h> | |
#define PLATFORM_VISIONOS 11 | |
#define PLATFORM_VISIONOSSIMULATOR 12 |
#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 }; |
#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") |
{ | |
"mach_syscalls": [ | |
{ | |
"number": 10, | |
"arguments": [ | |
"mach_port_name_t target", | |
"mach_vm_address_t *address", | |
"mach_vm_size_t size", | |
"int flags" | |
], |
#!/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 |