KeyError: 'Size'
zidanmahmoud opened this issue · 2 comments
zidanmahmoud commented
I am trying to extract data from an encrypted backup of an iPhone7 iOS 13.2.3
I ran all the code in README.md
fine up to the media extraction point:
backup.getFolderDecryptedCopy(
'Media',
targetFolder='./restored-photos',
includeDomains='CameraRollDomain',
excludeFiles='%.MOV'
)
where I get the following error:
Traceback (most recent call last):
File "main.py", line 26, in <module>
backup.getFolderDecryptedCopy(
File "/home/mahmud/.local/lib/python3.8/site-packages/iOSbackup/__init__.py", line 671, in getFolderDecryptedCopy
info=self.getFileDecryptedCopy(
File "/home/mahmud/.local/lib/python3.8/site-packages/iOSbackup/__init__.py", line 944, in getFileDecryptedCopy
info=iOSbackup.getFileInfo(manifestEntry['manifest'])
File "/home/mahmud/.local/lib/python3.8/site-packages/iOSbackup/__init__.py", line 783, in getFileInfo
"size": fileData['Size'],
KeyError: 'Size'
I have tried running it with cleartextpassword
as well as derivedkey
backup = iOSbackup(
udid="86536f75e0143010a3281631c86ac9b6d81473c8",
cleartextpassword="secret :p",
# derivedkey="secret :p",
backuproot="~/Documents/BACKUP_IOS/"
)
zidanmahmoud commented
Update: The deprecated inefficient method works. You're code is saving my data and I wanna thank you so much <3
backup.getFolderDecryptedCopy_OldInneficientDeprecated(
includeDomains='HomeDomain',
targetFolder='HomeDomain',
)
avibrazil commented
This was fixed in latest version 0.9.923