Haifisch / iphone-dataprotection

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

Problem with keychain_tool.py on iOS 7.1.1 #144

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run demo_bruteforce.py to generate keychain-2.db and DATAVOLUMEID.plist.
2. Run keychain_tool.py using the generated keychain-2.db and 
DATAVOLUMEID.plist.

What is the expected output?
keychain_tool.py to generate tables showing decrypted secrets.

What do you see instead?

$python python_scripts/keychain_tool.py -d UDID/keychain-2.db 
UDID/DATAVOLUMEID.plist

Keybag unlocked with passcode key
Traceback (most recent call last):
  File "python_scripts/keychain_tool.py", line 73, in <module>
    main()
  File "python_scripts/keychain_tool.py", line 53, in main
    k.print_all(options.sanitize)
  File "/XXXXX/iphone-dataprotection/python_scripts/keychain/keychain.py", line 134, in print_all
    for p in self.get_passwords():
  File "/XXXXX/iphone-dataprotection/python_scripts/keychain/keychain.py", line 65, in get_passwords
    return self.get_items("genp")
  File "/XXXXX/iphone-dataprotection/python_scripts/keychain/keychain.py", line 61, in get_items
    self.items[table] = filter(lambda x:x!={}, map(self.decrypt_item, self.store.get_items(table)))
  File "/XXXXX/iphone-dataprotection/python_scripts/keychain/keychain4.py", line 44, in decrypt_item
    dict = self.decrypt_blob(row["data"])
  File "/XXXXX/iphone-dataprotection/python_scripts/keychain/keychain4.py", line 81, in decrypt_blob
    raise Exception("unknown keychain verson ", version)
Exception: ('unknown keychain verson ', 3)

What version of the product are you using? On what operating system?
OS X version : 10.8.5
XCode version : 5.1.1 (5B1008)
Tools revision : 83b5dc3ae9a5+ tip

Please provide any additional information below.

Original issue reported on code.google.com by fated.dr...@gmail.com on 24 Jul 2014 at 1:54

GoogleCodeExporter commented 8 years ago
Please try applying ios7.patch.v3 from issue 115 and see if there are any other 
errors. thanks

Original comment by jean.sig...@gmail.com on 24 Jul 2014 at 9:55

GoogleCodeExporter commented 8 years ago
What about android

Original comment by mkusnie...@gmail.com on 10 Mar 2015 at 12:44