Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

matteyeux/Decrypt0r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decrypt0r

 ____                             _    ___
|  _ \  ___  ___ _ __ _   _ _ __ | |_ / _ \ _ __
| | | |/ _ \/ __| '__| | | | '_ \| __| | | | '__|
| |_| |  __/ (__| |  | |_| | |_) | |_| |_| | |
|____/ \___|\___|_|   \__, | .__/ \__|\___/|_|
 Version 1.2.0        |___/|_| by matteyeux

Rootfs decrypting

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

Encrypting rootfs and creating a Custom fimware

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.

IMG3

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.

IMG4

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].

How to build it?

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

Compatibility

Decrypt0r is compatible with Linux & macOS.
Windows users, check Decrypt0r for Windows

Credits

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:

For more informations contact me on Twitter: @matteyeux or ask this awesome website (not mine).

Feel free to contribute

About

CLI tool to decrypt iOS firmware components

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published