Skip to content

Instantly share code, notes, and snippets.

@LukeZGD
LukeZGD / activate_exploit.c
Last active June 23, 2024 07:34
ios 4 powder nvram fix - thanks to testingthings (@throwaway167074) for the fix impl
#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");
@LukeZGD
LukeZGD / differ.sh
Created February 25, 2025 12:09
diff between theapplewiki and fwkeydb ivkeys
#!/usr/bin/env bash
# diff between theapplewiki and fwkeydb ivkeys
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)
#types=(iPhone2,1)
comps=(AppleLogo BatteryCharging BatteryCharging0 BatteryCharging1 BatteryFull BatteryLow0 BatteryLow1 BatteryPlugin DeviceTree KernelCache LLB RecoveryMode EraseRamdisk iBEC iBSS iBoot UpgradeRamdisk)