#decryption #download #firmware #automatic #ios #image #bits

app iDecrypt

Tool to automatically download and decrypt 64 bits iOS firmware images

1 unstable release

0.1.2 Dec 21, 2022
0.1.1 Dec 21, 2022

#88 in #firmware

Custom license

27KB
411 lines

iDecrypt

Crates.io

A tool to download and decrypt 64 bits iOS firmware images

Usage

λ ~ » iDecrypt
iDecrypt 0.1.0
Tool to automatically download and decrypt 64 bits iOS firmware images.

USAGE:
    iDecrypt <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information`
    -V, --version    Print version information

SUBCOMMANDS:
    decrypt     Decrypt firmware image
    download    Download firmware image
    help        Print this message or the help of the given subcommand(s)
    info        info about device

Run

Make sure to have img4 available somewhere in your $PATH.

Simple usage:

λ ~ » iDecrypt decrypt iPad7,3 15.1 iBoot.j207.RELEASE.im4p  
[i] Downloading iBoot.j207.RELEASE.im4p
[i] Grabbing keys for iPad7,3/19B74
[x] IV  : f70605bdd8202c2f08407b3f791dc7a2
[x] Key : 82c61a0c1bde18583ec4476cc9eda52f5f7fce46c76f73f5c44e2d423402846d
[i] Decrypting iBoot.j207.RELEASE.im4p to iBoot.j207.RELEASE.bin

Specify key instead of grabbing it from the wiki:

λ ~ » iDecrypt decrypt iPad7,3 15.1 iBoot.j207.RELEASE.im4p -k f70605bdd8202c2f08407b3f791dc7a282c61a0c1bde18583ec4476cc9eda52f5f7fce46c76f73f5c44e2d423402846d
[i] Downloading iBoot.j207.RELEASE.im4p
[x] IV  : f70605bdd8202c2f08407b3f791dc7a2
[x] Key : 82c61a0c1bde18583ec4476cc9eda52f5f7fce46c76f73f5c44e2d423402846d
[i] Decrypting iBoot.j207.RELEASE.im4p to iBoot.j207.RELEASE.bin

Use already downloaded file:

λ ~ » iDecrypt decrypt iPad7,3 15.1 iBoot.j207.RELEASE.im4p -l
[i] Grabbing keys for iPad7,3/19B74
[x] IV  : f70605bdd8202c2f08407b3f791dc7a2
[x] Key : 82c61a0c1bde18583ec4476cc9eda52f5f7fce46c76f73f5c44e2d423402846d
[i] Decrypting iBoot.j207.RELEASE.im4p to iBoot.j207.RELEASE.bin

Download an decrypt iBoot from iOS 15.0 beta beta 6 for iPhone 12 Pro Max:

λ ~ » iDecrypt decrypt iPhone13,4 19A5325f iBoot.d54p.RELEASE.im4p -b
   Compiling iDecrypt v0.1.1 (/home/mathieu/dev/iDecrypt)
    Finished dev [unoptimized + debuginfo] target(s) in 3.85s
     Running `target/debug/iDecrypt decrypt iPhone13,4 19A5325f iBoot.d54p.RELEASE.im4p -b`
[i] Downloading iBoot.d54p.RELEASE.im4p
[i] Grabbing keys for iPhone13,4/19A5325f
[x] IV  : 12b3b21327cdde96ead01b3ee1605ee7
[x] Key : a7b73b08cab0e699b94eeb057ed7800241e8db7d1618fa45de68ef8448746444
[i] Decrypting iBoot.d54p.RELEASE.im4p to iBoot.d54p.RELEASE.bin

TODO

  • Specify keys without grabbing them from the wiki
  • Use file locally
  • Support for beta iOS versions
  • foreman Support
  • Decode and decrypt payload without img4

Credits

Dependencies

~30–46MB
~768K SLoC