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
// iOS 11 moves OFVariables to const | |
// https://twitter.com/s1guza/status/908790514178301952 | |
// however, if we: | |
// 1) Can find IODTNVRAM service | |
// 2) Have tfp0 / kernel read|write|alloc | |
// 3) Can leak kernel address of mach port | |
// then we can fake vtable on IODTNVRAM object | |
// async_wake satisfies those requirements | |
// however, I wasn't able to actually set or get ANY nvram variable | |
// not even userread/userwrite |