R1NZLR / iphone-dataprotection

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

Unable to display the keychain database contents #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. python python_scripts/keychain_tool.py -d UDID/keychain-2.db 
UDID/DATAVOLUMEID.plist
2.
3.

What is the expected output? What do you see instead?

To display the keychain database contents. 

Instead I see:

Keybag: SIGN check OK
Keybag unlocked with passcode key
Keychain version : 4
------------------------------------------------------------
                    Passwords
------------------------------------------------------------
Traceback (most recent call last):
  File "python_scripts/keychain_tool.py", line 51, in <module>
    main()
  File "python_scripts/keychain_tool.py", line 31, in main
    k.print_all(options.sanitize)
  File "/Users/tristank/Downloads/iphone-dataprotection/python_scripts/keychain/keychain.py", line 106, in print_all
    for p in self.get_passwords():
  File "/Users/tristank/Downloads/iphone-dataprotection/python_scripts/keychain/keychain.py", line 50, in get_passwords
    return map(self.decrypt_item, self.conn.execute("SELECT rowid, data, svce, acct, agrp FROM genp"))
  File "/Users/tristank/Downloads/iphone-dataprotection/python_scripts/keychain/keychain4.py", line 39, in decrypt_item
    version, clas = struct.unpack("<LL", row["data"][0:8])
TypeError: 'NoneType' object is unsubscriptable

What version of the product are you using? On what operating system?
Latest hg clone with Snow Leopard 10.6.8

Please provide any additional information below.
iPhone 4.3.3 GSM

Original issue reported on code.google.com by tristan....@gmail.com on 20 Dec 2011 at 10:40

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 6bf295b2b0d6.

Original comment by jean.sig...@gmail.com on 21 Dec 2011 at 10:10

GoogleCodeExporter commented 8 years ago
Can you try with the latest revision (hg pull && hg update) ? It should fix the 
issue. Thanks

Original comment by jean.sig...@gmail.com on 21 Dec 2011 at 10:11