A python parser for iOS backups
Project description
Description
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:
from pyiosbackup import Backup
backup_path = 'BACKUP_PATH'
password = '1234'
backup = Backup.from_path(backup_path, password)
for file in backup.iter_files():
print(file.filename)
print(file.last_modified)
You can also access a specific file:
import plistlib
from pyiosbackup import Backup
backup_path = 'BACKUP_PATH'
password = '1234'
backup = Backup.from_path(backup_path, password)
backupd_plist = backup.get_entry_by_domain_and_path(
'RootDomain', 'Library/Preferences/com.apple.backupd.plist'
)
print(plistlib.loads(backupd_plist))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyiosbackup-0.2.4.tar.gz.
File metadata
- Download URL: pyiosbackup-0.2.4.tar.gz
- Upload date:
- Size: 49.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10b4d2a11c9bedc93a5467cad3addbe18bc2dc434156920e7223226ed4d0beb7
|
|
| MD5 |
53137c59d50b5ed5c6837434f775886c
|
|
| BLAKE2b-256 |
46abc7c3caf6785ced43d02c8c37be3c84720c40d6a9b237eb2ff560af4114e1
|
Provenance
The following attestation bundles were made for pyiosbackup-0.2.4.tar.gz:
Publisher:
python-publish.yml on matan1008/pyiosbackup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyiosbackup-0.2.4.tar.gz -
Subject digest:
10b4d2a11c9bedc93a5467cad3addbe18bc2dc434156920e7223226ed4d0beb7 - Sigstore transparency entry: 904124138
- Sigstore integration time:
-
Permalink:
matan1008/pyiosbackup@83b3606a295b0722771e4558bbbaa4e489e58b77 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/matan1008
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@83b3606a295b0722771e4558bbbaa4e489e58b77 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyiosbackup-0.2.4-py3-none-any.whl.
File metadata
- Download URL: pyiosbackup-0.2.4-py3-none-any.whl
- Upload date:
- Size: 38.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c71ae67d012c13e01a5139687eb5bfaaa4e7722e6519c3f0a246a87e015f1b9e
|
|
| MD5 |
68645f17e3ab1bcf6190fbe0a611688a
|
|
| BLAKE2b-256 |
bd5be6e7f343116e9ea067ab1c5c5dbb42b277a6340ad6fd14f692db8ca915b0
|
Provenance
The following attestation bundles were made for pyiosbackup-0.2.4-py3-none-any.whl:
Publisher:
python-publish.yml on matan1008/pyiosbackup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyiosbackup-0.2.4-py3-none-any.whl -
Subject digest:
c71ae67d012c13e01a5139687eb5bfaaa4e7722e6519c3f0a246a87e015f1b9e - Sigstore transparency entry: 904124206
- Sigstore integration time:
-
Permalink:
matan1008/pyiosbackup@83b3606a295b0722771e4558bbbaa4e489e58b77 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/matan1008
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@83b3606a295b0722771e4558bbbaa4e489e58b77 -
Trigger Event:
release
-
Statement type: