yarshure / iphone-dataprotection

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

iOS 3 backups: syntax error #101

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
trying to use backup_tool.py on an encrypted iOS 3 backup.

see issue ID 100: after applying the patch, I get a syntax error:

Product Type : iPhone1,2
Product Version : 3.0.1
iTunes Version : 8.2.1
Extract backup to ../../output/ ? (y/n)
y
Backup is encrypted
Enter backup password : 
No BackupKeyBag in manifest, assuming iOS 3.x backup
Passphrase seems OK
Traceback (most recent call last):
  File "backup_tool.py", line 78, in <module>
    main()
  File "backup_tool.py", line 75, in main
    extract_backup(backup_path, output_path)
  File "backup_tool.py", line 34, in extract_backup
    decrypt_backup3(backup_path, output_path, password)
  File "/home/julien/Téléchargements/iphone_recover/iphone-dataprotection/python_scripts/backups/backup3.py", line 57, in decrypt_backup3
    metadata = parsePlist(metadata)
  File "/home/julien/Téléchargements/iphone_recover/iphone-dataprotection/python_scripts/util/__init__.py", line 57, in parsePlist
    return plistlib.readPlistFromString(s)
  File "/usr/lib/python2.7/plistlib.py", line 103, in readPlistFromString
    return readPlist(StringIO(data))
  File "/usr/lib/python2.7/plistlib.py", line 78, in readPlist
    rootObject = p.parse(pathOrFile)
  File "/usr/lib/python2.7/plistlib.py", line 406, in parse
    parser.ParseFile(fileobj)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0

Original issue reported on code.google.com by david.is...@gmail.com on 22 Mar 2013 at 2:21

GoogleCodeExporter commented 8 years ago
The bug should be fixed in the last commit (run hg update && hg pull to 
update). Thanks a lot !

Original comment by jean.sig...@gmail.com on 25 Mar 2013 at 10:01