sefischer / iphone-dataprotection

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

TypeError: unsuported type: <type 'NoneType'> #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Running: python python_scripts/demo_bruteforce.py
the script stop with these errors... any suggestion?
I've Xcode and python installed and updated running on updated Lion

MacBook:iphone-dataprotection paolo$ python python_scripts/demo_bruteforce.py
Device UDID : 0f06e5f7bd6298a67eaf2678f32af2ff3cc15c97
Keybag: SIGN check FAIL
Keybag UUID : 76e9929439f54a69af04e2c5a8672092
Saving 
/Users/paolo/Downloads/testdisk-6.13/iphone-dataprotection/0f06e5f7bd6298a67eaf2
678f32af2ff3cc15c97/c8defc7a1eb0a902.plist
passcodeKeyboardComplexity : {'rangeMinimum': 0, 'value': 0, 'rangeMaximum': 2}
Trying all 4-digits passcodes...
{'passcode': '', 'passcodeKey': 
'1f4376abb653b6afa42f306ada821880b4bdfc8fa3c23aa5683d9f5e29054b41'}
False
Keybag type : System keybag (0)
Keybag version : 3
Class   WRAP    Type    Key
1   3   0   
2   3   1   
3   3   0   
5   3   0   
6   3   0   
7   3   0   
8   1   0   
9   3   0   
10  3   0   
11  1   0   

Saving 
/Users/paolo/Downloads/testdisk-6.13/iphone-dataprotection/0f06e5f7bd6298a67eaf2
678f32af2ff3cc15c97/c8defc7a1eb0a902.plist
Traceback (most recent call last):
  File "python_scripts/demo_bruteforce.py", line 65, in <module>
    bf_system()
  File "python_scripts/demo_bruteforce.py", line 55, in bf_system
    di.save()
  File "/Users/paolo/Downloads/testdisk-6.13/iphone-dataprotection/python_scripts/util/ramdiskclient.py", line 21, in save
    plistlib.writePlist(self, filename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 94, in writePlist
    writer.writeValue(rootObject)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 252, in writeValue
    self.writeDict(value)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 281, in writeDict
    self.writeValue(value)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 260, in writeValue
    raise TypeError("unsuported type: %s" % type(value))
TypeError: unsuported type: <type 'NoneType'>
MacBook:iphone-dataprotection paolo$ 

There is also a strange syntax error on word "unsupported"

thank you,
Paolo

Original issue reported on code.google.com by p.barbal...@gmail.com on 11 Mar 2012 at 12:52

GoogleCodeExporter commented 9 years ago
What device are you using ? Can you check in the c8defc7a1eb0a902.plist file if 
the "key835" field is not all zeroes ? Also, can you try running the 
./bruteforce command on the ramdisk and look for error messages ? Thanks.

Original comment by jean.sig...@gmail.com on 11 Mar 2012 at 3:59

GoogleCodeExporter commented 9 years ago
I had the same problem. (windows x86 and ubuntu)

It turned out that I was using a pwned kernel generated by redsn0w. (somehow I 
thought it would work fine with this,) using the kernel_patcher python script 
to generate a patched kernel and providing it to redsn0w with the -k switch 
sorted out this error 

Original comment by System...@gmail.com on 19 Mar 2012 at 12:16

GoogleCodeExporter commented 9 years ago
closing old issues

Original comment by jean.sig...@gmail.com on 11 Feb 2014 at 10:38