A python parser for iOS backups
Low maintenance activity. Last release 10 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install pyiosbackupDescription
pyiosbackup is a utility created in order to parse and decrypt iOS backups.
Installation
Install the last released version using pip:
python3 -m pip install --user -U pyiosbackup
Or install the latest version from sources:
git clone git@github.com:matan1008/pyiosbackup.git
cd pyiosbackup
python3 -m pip install --user -U -e .
Usage
CLI
Before decrypting a backup, you need to create one. You can use the amazing pymobiledevice3 to do that:
pymobiledevice3 backup2 encryption ON 1234 .
pymobiledevice3 backup2 backup --full .
After creating the backup, you can decrypt it:
pyiosbackup extract-all $BACKUP_FOLDER 1234 --target decrypted
You can also extract single files by their domain and relative path:
pyiosbackup extract-domain-path $BACKUP_FOLDER RootDomain Library/Preferences/com.apple.backupd.plist -p 1234
Or by their file id:
pyiosbackup extract-id $BACKUP_FOLDER a8323a1323d9cad416d8b44d87c8049de1adff25 -p 1234
You can also print some metadata about the backup:
pyiosbackup stats $BACKUP_FOLDER -p 1234
Python
Another way to access the functionality of the package is using python code.
For example, iterating over all files in a backup will look like: