iphone-dataprotection icon indicating copy to clipboard operation
iphone-dataprotection copied to clipboard

TypeError: new() takes at least 2 arguments (1 given)

Open HenryHoggard opened this issue 7 years ago • 1 comments

➜ python_scripts git:(master) ✗ python backup_tool.py backup

Output

Last Backup Date : 2018-01-22 11:08:16
IMEI : ***
Serial Number : ***
Product Type : iPhone7,2
Product Version : 11.2.2
iTunes Version : 12.5.5.5
Extract backup to out ? (y/n)
y
Backup is encrypted
Enter backup password : 
password
Generating the password key for iOS 10.2+. May take a while...

Error

 File "backup_tool.py", line 114, in <module>
    main()
  File "backup_tool.py", line 111, in main
    extract_backup(backup_path, output_path)
  File "backup_tool.py", line 56, in extract_backup
    kb = Keybag.createWithBackupManifest(manifest, password, ios102=True)
  File "/Tools/iOS/iphone-dataprotection/python_scripts/keystore/keybag.py", line 135, in createWithBackupManifest
    if not kb.unlockBackupKeybagWithPasscode(password, ios102=ios102):
  File "/Tools/iOS/iphone-dataprotection/python_scripts/keystore/keybag.py", line 207, in unlockBackupKeybagWithPasscode
    return self.unlockWithPasscodeKey(self.getPasscodekeyFromPasscode(passcode, ios102=ios102))
  File "/Tools/iOS/iphone-dataprotection/python_scripts/keystore/keybag.py", line 232, in unlockWithPasscodeKey
    k = AESUnwrap(passcodekey, classkey["WPKY"])
  File "/Tools/iOS/iphone-dataprotection/python_scripts/crypto/aeswrap.py", line 29, in AESUnwrap
    B = AES.new(kek).decrypt(todec)

HenryHoggard avatar Jan 22 '18 13:01 HenryHoggard

Duplicate of #24

Commodore1024 avatar Jun 06 '18 21:06 Commodore1024