mirror of
https://github.com/mvt-project/mvt.git
synced 2024-07-01 00:19:02 +00:00
Standardizing base classes declarations
This commit is contained in:
parent
23e4babbc9
commit
54eaf046b0
|
@ -29,12 +29,6 @@ class AndroidExtraction(MVTModule):
|
||||||
|
|
||||||
def __init__(self, file_path=None, base_folder=None, output_folder=None,
|
def __init__(self, file_path=None, base_folder=None, output_folder=None,
|
||||||
fast_mode=False, log=None, results=[]):
|
fast_mode=False, log=None, results=[]):
|
||||||
"""Initialize Android extraction module.
|
|
||||||
:param file_path: Path to the database file to parse
|
|
||||||
:param base_folder: Path to a base folder containing an Android dump
|
|
||||||
:param output_folder: Path to the folder where to store extraction
|
|
||||||
results
|
|
||||||
"""
|
|
||||||
super().__init__(file_path=file_path, base_folder=base_folder,
|
super().__init__(file_path=file_path, base_folder=base_folder,
|
||||||
output_folder=output_folder, fast_mode=fast_mode,
|
output_folder=output_folder, fast_mode=fast_mode,
|
||||||
log=log, results=results)
|
log=log, results=results)
|
||||||
|
|
|
@ -17,9 +17,15 @@ from mvt.common.module import (DatabaseCorruptedError, DatabaseNotFoundError,
|
||||||
class IOSExtraction(MVTModule):
|
class IOSExtraction(MVTModule):
|
||||||
"""This class provides a base for all iOS filesystem/backup extraction modules."""
|
"""This class provides a base for all iOS filesystem/backup extraction modules."""
|
||||||
|
|
||||||
is_backup = False
|
def __init__(self, file_path=None, base_folder=None, output_folder=None,
|
||||||
is_fs_dump = False
|
fast_mode=False, log=None, results=[]):
|
||||||
is_sysdiagnose = False
|
super().__init__(file_path=file_path, base_folder=base_folder,
|
||||||
|
output_folder=output_folder, fast_mode=fast_mode,
|
||||||
|
log=log, results=results)
|
||||||
|
|
||||||
|
self.is_backup = False
|
||||||
|
self.is_fs_dump = False
|
||||||
|
self.is_sysdiagnose = False
|
||||||
|
|
||||||
def _is_database_malformed(self, file_path):
|
def _is_database_malformed(self, file_path):
|
||||||
# Check if the database is malformed.
|
# Check if the database is malformed.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user