jsharkey13 / iphone_backup_decrypt

Decrypt an encrypted iOS backup created by iTunes on Windows or MacOS
Other
247 stars 41 forks source link

Looping over Directory Structure ? #3

Closed rainbat closed 3 years ago

rainbat commented 3 years ago

Hi there, I'm trying to extract the contents of a file of an App I have in my Backup.

From the free Backup Extractor Tools I found: AppDomain-com.northcube.life/Library/Life.db

Now How do I call this in your script ? backup.extract_file(relative_path='Applications/AppDomain-com.northcube.life/Library/Life.db', output_filename="sm_lifecycle.sqlite")

All your samples work like a Charm like: backup.extract_file(relative_path='Library/AddressBook/AddressBook.sqlitedb', output_filename="sm_call_contacts.sqlite")

Glad if you can help and thanks for your Work, Dominique

rainbat commented 3 years ago

Sorry I found out, I used the libryry and explanations on: https://pypi.org/project/iOSbackup/

Have a nice Weekend, Domi

jsharkey13 commented 3 years ago

Yeah, I intended this library as a low-level thing, assuming you already knew the relativePath of the file you wanted, or were comfortable exploring the Manifest SQLite database file to find it.

If you opened the Manifest SQLite file created from backup.save_manifest_file('Manifest.sqlite'), either using Python's sqlite module or a graphical program, you can use something like SELECT * FROM Files WHERE domain='AppDomain-com.northcube.life'; and find the file you want and its relativePath from that ouput.

BUT, that said, there are indeed other projects that are a bit more user-friendly:

Glad you got something working!