irshadpc / iphone-dataprotection

Automatically exported from code.google.com/p/iphone-dataprotection
0 stars 0 forks source link

kernel_patcher.py #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
sh-3.2# python python_scripts/kernel_patcher.py 
/users/amy/Downloads/iPhone2,1_4.3.3_8J2_Restore.ipsw 
Decrypting kernelcache.release.n88
Unpacking ...
Using iOS 4 kernel patches
Doing CSED patch
Doing getxattr system patch
Doing AMFI patch
Doing NAND_epoch patch
Doing _PE_i_can_has_debugger patch
Doing IOAESAccelerator enable UID patch
Patched kernel written to kernelcache.release.n88.patched
Decrypting 038-1447-003.dmg
Traceback (most recent call last):
  File "python_scripts/kernel_patcher.py", line 224, in <module>
    main(args[0], options)
  File "python_scripts/kernel_patcher.py", line 163, in main
    ramdisk = decryptImg3(ramdisk, key.decode("hex"), iv.decode("hex"))
  File "python_scripts/kernel_patcher.py", line 101, in decryptImg3
    return AES.new(key, AES.MODE_CBC, iv).decrypt(data)[:real_size]
  File "build/bdist.macosx-10.7-intel/egg/Crypto/Cipher/AES.py", line 95, in new
  File "build/bdist.macosx-10.7-intel/egg/Crypto/Cipher/AES.py", line 59, in __init__
  File "build/bdist.macosx-10.7-intel/egg/Crypto/Cipher/blockalgo.py", line 141, in __init__
ValueError: Key cannot be the null string
What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
OS X version : 10.7.5
XCode version : Version 4.2.1 (4D502)
Tools revision : run the "hg id" command in the iphone-dataprotection
folder

9253cb99a012 tip

Please provide any additional information below.

Just trying to understand what is "null" or what am I missing to get this to 
work?

Original issue reported on code.google.com by larry.pa...@gmail.com on 2 Feb 2014 at 11:50

GoogleCodeExporter commented 8 years ago
try using the ios 5.0 ipsw, regardless of the installed version on the device. 

Original comment by jean.sig...@gmail.com on 3 Feb 2014 at 1:14