gcc generate_nor.c aes.c -o generate_nor -I/usr/local/Cellar/[email protected]/1.1.1l/include -L/usr/local/Cellar/[email protected]/1.1.1l/lib -lssl -lcrypto
Create a directory named data and copy the following files from iPod1,1_1.1_3A101a_Restore/Firmware/all_flash/all_flash.n45ap.production/
DeviceTree.n45ap.img2
applelogo.img2
batterylow0.img2
batterylow1.img2
needservice.img2
batterycharging.img2
recoverymode.img2
paste the files into the data directory
run git submodule update --init
cd into the decryptor directory
run make
then use decryptor in the decryptor directory to go through each item and decrypt it.
Syntax: decryptor [file in] [file out] (the file out name is just the original name minus the .img2 file ending
all decrypted files need to be put in the data directory
the data directory should now look like:
DeviceTree.n45ap.img2
applelogo.img2
batterylow0.img2
batterylow1.img2
needservice.img2
batterycharging.img2
recoverymode.img2
DeviceTree.n45ap
applelogo
batterylow0
batterylow1
needservice
batterycharging
recoverymode
run rm -rf *.img2
which removes the uneeded files, you can now run ./generate_nor
and get a nor.bin
file