Git Product home page Git Product logo

Comments (11)

botherder avatar botherder commented on June 1, 2024 1

Can you check you do have a Manifest.db file inside the backup folder and that it is not empty?

from mvt.

merganon avatar merganon commented on June 1, 2024 1

A quick fix is to use a password without special characters

from mvt.

Te-k avatar Te-k commented on June 1, 2024

have you tried to put it into quotes?

from mvt.

tritium01 avatar tritium01 commented on June 1, 2024

have you tried to put it into quotes?

Getting the same error, tried single and double quotes but no positive result

from mvt.

pkirkovsky avatar pkirkovsky commented on June 1, 2024

Try running it with a trailing (and empty) -p flag. That should prompt for a password.

from mvt.

tritium01 avatar tritium01 commented on June 1, 2024

Try running it with a trailing (and empty) -p flag. That should prompt for a password.

Modified to print the password entered, it seems to be displaying it correctly, but still saying wrong password. Tried with two different files and Iphones, resetting settings and setting a new encryption password still no luck.

Can the extract-key PR help out with this issue?
Attached is the Typerror shown in console.
Thanks for the help great proyect!

❯ mvt-ios decrypt-backup2 --password "123456" -d ../../backups/rmg ../../backups/00008101-000C08303498001E
12:52:40 INFO     [mvt.ios.decrypt] Decrypting iOS backup at path ../../backups/00008101-000C08303498001E with password                                                                                                      
12:52:45 ERROR    [mvt.ios.decrypt] b'KEY'                                                                                                                                                                                   
                  Traceback (most recent call last):                                                                                                                                                                         
                    File "/Users/rmg/.local/share/virtualenvs/mvt-4CIRQtEM/lib/python3.9/site-packages/mvt/ios/decrypt.py", line 75, in decrypt_with_password                                                                
                      self._backup = iOSbackup(udid=os.path.basename(self.backup_path),                                                                                                                                      
                    File "/Users/rmg/.local/share/virtualenvs/mvt-4CIRQtEM/lib/python3.9/site-packages/iOSbackup/__init__.py", line 190, in __init__                                                                         
                      self.getManifestDB()                                                                                                                                                                                   
                    File "/Users/rmg/.local/share/virtualenvs/mvt-4CIRQtEM/lib/python3.9/site-packages/iOSbackup/__init__.py", line 1037, in getManifestDB                                                                   
                      key = self.unwrapKeyForClass(manifest_class, manifest_key)                                                                                                                                             
                    File "/Users/rmg/.local/share/virtualenvs/mvt-4CIRQtEM/lib/python3.9/site-packages/iOSbackup/__init__.py", line 1150, in unwrapKeyForClass                                                               
                      ck = self.classKeys[protection_class][b"KEY"]                                                                                                                                                          
                  KeyError: b'KEY'                                                                                                                                                                                           
         CRITICAL [mvt.ios.decrypt] Failed to decrypt backup. Did you provide the correct passwords? 123456                                                                                                                
Exception ignored in: <function iOSbackup.__del__ at 0x1091951f0>
Traceback (most recent call last):
  File "/Users/rmg/.local/share/virtualenvs/mvt-4CIRQtEM/lib/python3.9/site-packages/iOSbackup/__init__.py", line 132, in __del__
    self.close()
  File "/Users/rmg/.local/share/virtualenvs/mvt-4CIRQtEM/lib/python3.9/site-packages/iOSbackup/__init__.py", line 138, in close
    os.remove(self.manifestDB)
TypeError: remove: path should be string, bytes or os.PathLike, not NoneType

from mvt.

pkirkovsky avatar pkirkovsky commented on June 1, 2024

Can the extract-key PR help out with this issue?

Possibly. Give it a try!

Attached is the Typerror shown in console.

Yeah, the underlying library is not very graceful about handling errors. I will investigate this further.
Also, I'll double check how MVT processes special characters, as I've seen some issues when attempting to quote parameter values.

from mvt.

samsonho avatar samsonho commented on June 1, 2024

have you tried to put it into quotes?

Yes

from mvt.

samsonho avatar samsonho commented on June 1, 2024

Can you check you do have a Manifest.db file inside the backup folder and that it is not empty?

It is present and it is not empty.

from mvt.

samsonho avatar samsonho commented on June 1, 2024

A quick fix is to use a password without special characters

Unfortunately this was my temporary solution. 😵‍💫👍🏻

from mvt.

botherder avatar botherder commented on June 1, 2024

As of the latest version you can now pass a password by command line, by environment var or by prompt. Surely one option would work for you.

I'm closing this ticket as resolved.

from mvt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.