combsjy / iphone-dataprotection

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

Error in keychain.py line 65 #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
python python_scripts/keychain_tool.py -d UDID/keychain-2.db 
UDID/DATAVOLUMEID.plist after successful bruteforce with python 
python_scripts/demo_bruteforce.py gives the following error:

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/haraldmuller/Downloads/iphone-dataprotection/python_scripts/keychain/keychain.py", line 119, in print_all
    certs, pkeys = self.get_certs()
  File "/Users/haraldmuller/Downloads/iphone-dataprotection/python_scripts/keychain/keychain.py", line 65, in get_certs
    subject = str(cert.get_subject().get_entries_by_nid(M2Crypto.X509.X509_Name.nid['CN'])[0].get_data())
IndexError: list index out of range

Original issue reported on code.google.com by hans12mu...@gmail.com on 24 Jan 2012 at 12:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 757a2f0fc1ff.

Original comment by jean.sig...@gmail.com on 29 Jan 2012 at 12:15

GoogleCodeExporter commented 9 years ago
Can you try with the latest revision ? it should be fixed (run "hg pull && hg 
update" to grab the changes). thanks

Original comment by jean.sig...@gmail.com on 29 Jan 2012 at 12:17

GoogleCodeExporter commented 9 years ago
It works with the latest revision. Thanks.

Original comment by hans12mu...@gmail.com on 30 Jan 2012 at 11:56