mvt/mvt/ios/cmd_check_backup.py

44 lines
1.2 KiB
Python
Raw Normal View History

2022-06-16 13:18:50 +00:00
# Mobile Verification Toolkit (MVT)
2023-09-09 15:55:27 +00:00
# Copyright (c) 2021-2023 The MVT Authors.
2022-06-16 13:18:50 +00:00
# Use of this software is governed by the MVT License 1.1 that can be found at
# https://license.mvt.re/1.1/
import logging
from typing import Optional
2022-06-16 13:18:50 +00:00
from mvt.common.command import Command
from .modules.backup import BACKUP_MODULES
from .modules.mixed import MIXED_MODULES
log = logging.getLogger(__name__)
class CmdIOSCheckBackup(Command):
def __init__(
self,
2022-08-17 13:52:17 +00:00
target_path: Optional[str] = None,
results_path: Optional[str] = None,
ioc_files: Optional[list] = None,
2022-08-17 13:52:17 +00:00
module_name: Optional[str] = None,
serial: Optional[str] = None,
module_options: Optional[dict] = None,
hashes: bool = False,
) -> None:
super().__init__(
target_path=target_path,
results_path=results_path,
ioc_files=ioc_files,
module_name=module_name,
serial=serial,
module_options=module_options,
hashes=hashes,
log=log,
)
2022-06-22 15:54:03 +00:00
2022-08-12 14:20:16 +00:00
self.name = "check-backup"
self.modules = BACKUP_MODULES + MIXED_MODULES
2022-06-22 15:54:03 +00:00
def module_init(self, module):
module.is_backup = True