____ _ ___
| _ \ ___ ___ _ __ _ _ _ __ | |_ / _ \ _ __
| | | |/ _ \/ __| '__| | | | '_ \| __| | | | '__|
| |_| | __/ (__| | | |_| | |_) | |_| |_| | |
|____/ \___|\___|_| \__, | .__/ \__|\___/|_|
Version 1.2.0 |___/|_| by matteyeux
To decrypt rootfs or other components like IMG3 files you have to grab keys from iPhonewiki.
First download the IPSW you want to decrypt, you can download it directly with my tool or from ipsw.me.
The program will ask you to add the keys grabed from iphonewiki (only one for the rootfs).
Specify the name of the file containing rootfs (ex 058-24465-023.dmg).
In the IPSW file, there is three dmg files, rootfs is the biggest.
Then the program is going to work automaticaly.
If you want to modify rootfs (ex Setup.app) you can use TransMac for Windows, whatever it won't
You can create a Custom fimware. You won't be able to restore whith it.
Is this feature useless ?
Yes, but it can still be used.
To decrypt IMG3 files like kernelcache or iBoot, you have to grab the keys from theiphonewiki
The first one to add is the largest, and the second one is the iv key (the smallest).
Then follow instructions.
Decrypt0r now supports IMG4 (or im4P, whatever) files. I added a function which checks if the file is an IM4P or not.
You can also decompress compressed iPhone 7 kernelcache when it asks for firmware just press [enter]
.
To build Decrypt0r just cd to the decryptr0r directory and run make
To build Xpwn and other stuff run build.sh
on Debian like distros.
macOS users sorry there is no more bins available.
But if you just plan to just decrypt firmware, install libimg3
Decrypt0r is compatible with Linux & macOS.
Windows users, check Decrypt0r for Windows
Credits go to :
My friend @Dev__Jam for initial idea and some code.
Some functions by Lilo Colson
Reimagine tool made by Danzatt
Callum Jones for his awesome website ipsw.me & API .
Joshua Hill for libimg3
Developed by Mathieu Hautebas (@matteyeux)
For this tool I used:
- XPwn compiled from https://github.com/xerub/xpwn
- 7zip (developed by Igor Pavlov)
- Reimagine
- img4tool
For more informations contact me on Twitter: @matteyeux or ask this awesome website (not mine).
Feel free to contribute