- Download and install Python (3.13 and newer, this tutorial is tested on 3.14.3): https://python.org
- Download and install iTunes: https://www.apple.com/itunes/download/win64
- Download and install Visual Studio Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/
- In the installer, make sure to check "Desktop Development with C++" before clicking Install.
- Download TrollRestore_Linux.zip: https://github.com/JJTech0130/TrollRestore/releases/latest
- Extract TrollRestore_Linux.zip
- In the TrollRestore_Linux folder, open
requirements.txtand change the first line (don't forget to save it):pymobiledevice3<=6.2.0 - While holding the Shift button, right-click the TrollRestore_Linux folder, and select "Open PowerShell window here"
This file contains hidden or 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
| #include <stdlib.h> | |
| int main() { | |
| system("nvram -c"); | |
| system("nvram boot-partition=2"); | |
| system("nvram auto-boot=1"); | |
| //system("nvram auto-boot=0"); // for 4.2.x and lower, to send device to recovery after restore | |
| system("umount /mnt1"); | |
| system("mount_hfs /dev/disk0s1 /mnt1"); | |
| system("dd if=/iBoot of=/mnt1/iBEC bs=512k"); |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # diff between theapplewiki and fwkeydb ivkeys | |
| #set -x | |
| types=(iPhone1,1 iPhone1,2 iPhone2,1 iPhone3,1 iPhone3,2 iPhone3,3 iPhone4,1 iPhone5,1 iPhone5,2 iPhone5,3 iPhone5,4 | |
| iPad1,1 iPad2,1 iPad2,2 iPad2,3 iPad2,4 iPad2,5 iPad2,6 iPad2,7 iPad3,1 iPad3,2 iPad3,3 iPad3,4 iPad3,5 iPad3,6 | |
| iPod1,1 iPod2,1 iPod3,1 iPod4,1 iPod5,1 | |
| iPhone6,1 iPhone6,2 iPhone7,1 iPhone7,2 iPhone9,1 iPhone9,2 iPhone9,3 iPhone9,4 | |
| iPad4,1 iPad4,2 iPad4,3 iPad4,4 iPad4,5 iPad4,6 iPad4,7 iPad4,8 iPad4,9 iPad5,1 iPad5,2 iPad5,3 iPad5,4 | |
| iPod7,1 iPod9,1) |
This file contains hidden or 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
| // from https://github.com/verygenericname/SSHRD_Script/commit/708ce254fea08e442ecb4cd20c3fdbfe6ce9ab66 | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define MAX_DIFFS 16384 | |
| void print_usage(const char *prog_name) { | |
| printf("Usage: %s kernelcache_original kernelcache_patched output.bpatch\n", prog_name); |
This file contains hidden or 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
| // clang -isysroot iPhoneOS5.1.sdk -arch armv7 reboot4.c -o reboot4 | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <sys/wait.h> | |
| #include <spawn.h> | |
| extern char **environ; |
This file contains hidden or 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
| #define _GNU_SOURCE | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <string.h> | |
| // the following few functions are from patchfinder64 | |
| #define GET_OFFSET(len, x) (x - (uintptr_t) restored_external) |
OlderNewer