diff --git a/mvt/ios/cli.py b/mvt/ios/cli.py index 4e61341..a332596 100644 --- a/mvt/ios/cli.py +++ b/mvt/ios/cli.py @@ -29,7 +29,7 @@ log = logging.getLogger(__name__) OUTPUT_HELP_MESSAGE = "Specify a path to a folder where you want to store JSON results" # Set this environment variable to a password if needed. -PASSWD_ENV = 'MVT_IOS_BACKUP_PASSWORD' +PASSWD_ENV = "MVT_IOS_BACKUP_PASSWORD" #============================================================================== # Main diff --git a/mvt/ios/modules/fs/base.py b/mvt/ios/modules/fs/base.py index 4c2d145..dbc3751 100644 --- a/mvt/ios/modules/fs/base.py +++ b/mvt/ios/modules/fs/base.py @@ -56,7 +56,7 @@ class IOSExtraction(MVTModule): bak_path = f"{file_path}.bak" shutil.move(file_path, bak_path) - ret = subprocess.call(['sqlite3', bak_path, f'.clone "{file_path}"'], + ret = subprocess.call(["sqlite3", bak_path, f".clone '{file_path}'"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) if ret != 0: raise DatabaseCorruptedError("Recovery of database failed")