I set up a Xcode project to test it on iOS
https://github.com/jdmoreira/KernelPanic-10LOC
It doesn't work on my device running iOS 8.1.2 Can someone confirm?
Edit: It works now!
It doesn't work on my device running iOS 8.1.2 Can someone confirm?
Edit: It works now!
library = (char *) _dyld_get_image_header (1);
If you're unlucky library at index 1 contains mach_vm_read_overwrite and is suddenly no longer executable (since we change its second memory page from R-X to RW- due to stock kernels not allowing RWX pages).
It works now! Device restarts ;)