diff --git a/yalu102/jailbreak.m b/yalu102/jailbreak.m index cdf3bc1..ed6eea7 100644 --- a/yalu102/jailbreak.m +++ b/yalu102/jailbreak.m @@ -843,14 +843,9 @@ void exploit(void* btn, mach_port_t pt, uint64_t kernbase, uint64_t allprocs) } { - char path[256]; - uint32_t size = sizeof(path); - _NSGetExecutablePath(path, &size); - char* pt = realpath(path, 0); - { __block pid_t pd = 0; - NSString* execpath = [[NSString stringWithUTF8String:pt] stringByDeletingLastPathComponent]; + NSString* execpath = [[NSBundle mainBundle] bundlePath]; int f = open("/.installed_yaluX", O_RDONLY);