mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-27 22:58:57 +00:00
Changed default for Optional[str]
This commit is contained in:
parent
ace965ee8a
commit
ea5de0203a
|
@ -17,11 +17,11 @@ class CmdAndroidCheckADB(Command):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
ioc_files: Optional[list] = None,
|
||||
module_name: Optional[str] = "",
|
||||
serial: Optional[str] = "",
|
||||
module_name: Optional[str] = None,
|
||||
serial: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
) -> None:
|
||||
super().__init__(target_path=target_path, results_path=results_path,
|
||||
|
|
|
@ -27,11 +27,11 @@ class CmdAndroidCheckBackup(Command):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
ioc_files: Optional[list] = None,
|
||||
module_name: Optional[str] = "",
|
||||
serial: Optional[str] = "",
|
||||
module_name: Optional[str] = None,
|
||||
serial: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
) -> None:
|
||||
super().__init__(target_path=target_path, results_path=results_path,
|
||||
|
|
|
@ -20,11 +20,11 @@ class CmdAndroidCheckBugreport(Command):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
ioc_files: Optional[list] = None,
|
||||
module_name: Optional[str] = "",
|
||||
serial: Optional[str] = "",
|
||||
module_name: Optional[str] = None,
|
||||
serial: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
) -> None:
|
||||
super().__init__(target_path=target_path, results_path=results_path,
|
||||
|
|
|
@ -27,7 +27,7 @@ class DownloadAPKs(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
results_path: Optional[str] = "",
|
||||
results_path: Optional[str] = None,
|
||||
all_apks: Optional[bool] = False,
|
||||
packages: Optional[list] = None
|
||||
) -> None:
|
||||
|
|
|
@ -34,9 +34,9 @@ class AndroidExtraction(MVTModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -21,9 +21,9 @@ class ChromeHistory(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,9 +16,9 @@ class DumpsysAccessibility(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,9 +16,9 @@ class DumpsysActivities(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -18,9 +18,9 @@ class DumpsysAppOps(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,9 +16,9 @@ class DumpsysBatteryDaily(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,9 +16,9 @@ class DumpsysBatteryHistory(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -18,9 +18,9 @@ class DumpsysDBInfo(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -15,9 +15,9 @@ class DumpsysFull(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -22,9 +22,9 @@ class DumpsysReceivers(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -27,9 +27,9 @@ class Files(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -17,9 +17,9 @@ class Getprop(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -15,9 +15,9 @@ class Logcat(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -72,9 +72,9 @@ class Packages(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -14,9 +14,9 @@ class Processes(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -14,9 +14,9 @@ class RootBinaries(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,9 +16,9 @@ class SELinuxStatus(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -62,9 +62,9 @@ class Settings(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -47,9 +47,9 @@ class SMS(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -21,9 +21,9 @@ class Whatsapp(AndroidExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -17,9 +17,9 @@ class BackupExtraction(MVTModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -14,9 +14,9 @@ class SMS(BackupExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,9 +16,9 @@ class Accessibility(BugReportModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,9 +16,9 @@ class Activities(BugReportModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,9 +16,9 @@ class Appops(BugReportModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -17,9 +17,9 @@ class BugReportModule(MVTModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,9 +16,9 @@ class BatteryDaily(BugReportModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,9 +16,9 @@ class BatteryHistory(BugReportModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -18,9 +18,9 @@ class DBInfo(BugReportModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -17,9 +17,9 @@ class Getprop(BugReportModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -19,9 +19,9 @@ class Packages(BugReportModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -22,9 +22,9 @@ class Receivers(BugReportModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -16,11 +16,11 @@ class CmdCheckIOCS(Command):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
ioc_files: Optional[list] = None,
|
||||
module_name: Optional[str] = "",
|
||||
serial: Optional[str] = "",
|
||||
module_name: Optional[str] = None,
|
||||
serial: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
) -> None:
|
||||
super().__init__(target_path=target_path, results_path=results_path,
|
||||
|
|
|
@ -21,11 +21,11 @@ class Command:
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
ioc_files: Optional[list] = None,
|
||||
module_name: Optional[str] = "",
|
||||
serial: Optional[str] = "",
|
||||
module_name: Optional[str] = None,
|
||||
serial: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
) -> None:
|
||||
|
|
|
@ -44,6 +44,7 @@ class Indicators:
|
|||
|
||||
paths = os.environ["MVT_STIX2"].split(":")
|
||||
for path in paths:
|
||||
print(path)
|
||||
if os.path.isfile(path):
|
||||
self.parse_stix2(path)
|
||||
else:
|
||||
|
@ -52,11 +53,11 @@ class Indicators:
|
|||
|
||||
def _new_collection(
|
||||
self,
|
||||
cid: Optional[str] = "",
|
||||
name: Optional[str] = "",
|
||||
description: Optional[str] = "",
|
||||
file_name: Optional[str] = "",
|
||||
file_path: Optional[str] = ""
|
||||
cid: Optional[str] = None,
|
||||
name: Optional[str] = None,
|
||||
description: Optional[str] = None,
|
||||
file_name: Optional[str] = None,
|
||||
file_path: Optional[str] = None
|
||||
) -> dict:
|
||||
return {
|
||||
"id": cid,
|
||||
|
|
|
@ -32,9 +32,9 @@ class MVTModule:
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -18,11 +18,11 @@ class CmdIOSCheckBackup(Command):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
ioc_files: Optional[list] = None,
|
||||
module_name: Optional[str] = "",
|
||||
serial: Optional[str] = "",
|
||||
module_name: Optional[str] = None,
|
||||
serial: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
) -> None:
|
||||
super().__init__(target_path=target_path, results_path=results_path,
|
||||
|
|
|
@ -18,11 +18,11 @@ class CmdIOSCheckFS(Command):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
ioc_files: Optional[list] = None,
|
||||
module_name: Optional[str] = "",
|
||||
serial: Optional[str] = "",
|
||||
module_name: Optional[str] = None,
|
||||
serial: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
) -> None:
|
||||
super().__init__(target_path=target_path, results_path=results_path,
|
||||
|
|
|
@ -25,7 +25,7 @@ class DecryptBackup:
|
|||
|
||||
"""
|
||||
|
||||
def __init__(self, backup_path: str, dest_path: Optional[str] = "") -> None:
|
||||
def __init__(self, backup_path: str, dest_path: Optional[str] = None) -> None:
|
||||
"""Decrypts an encrypted iOS backup.
|
||||
:param backup_path: Path to the encrypted backup folder
|
||||
:param dest_path: Path to the folder where to store the decrypted backup
|
||||
|
|
|
@ -19,9 +19,9 @@ class BackupInfo(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -21,9 +21,9 @@ class ConfigurationProfiles(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -23,9 +23,9 @@ class Manifest(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -22,9 +22,9 @@ class ProfileEvents(IOSExtraction):
|
|||
"""
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -21,9 +21,9 @@ class IOSExtraction(MVTModule):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
@ -82,8 +82,8 @@ class IOSExtraction(MVTModule):
|
|||
|
||||
def _get_backup_files_from_manifest(
|
||||
self,
|
||||
relative_path: Optional[str] = "",
|
||||
domain: Optional[str] = ""
|
||||
relative_path: Optional[str] = None,
|
||||
domain: Optional[str] = None
|
||||
) -> Iterator[dict]:
|
||||
"""Locate files from Manifest.db.
|
||||
|
||||
|
|
|
@ -23,9 +23,9 @@ class Analytics(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -20,9 +20,9 @@ class AnalyticsIOSVersions(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -15,9 +15,9 @@ class CacheFiles(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -21,9 +21,9 @@ class Filesystem(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -24,9 +24,9 @@ class Netusage(NetBase):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -22,9 +22,9 @@ class SafariFavicon(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -20,9 +20,9 @@ class ShutdownLog(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -22,9 +22,9 @@ class IOSVersionHistory(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -24,9 +24,9 @@ class WebkitIndexedDB(WebkitBase):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -22,9 +22,9 @@ class WebkitLocalStorage(WebkitBase):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -22,9 +22,9 @@ class WebkitSafariViewService(WebkitBase):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -26,9 +26,9 @@ class ChromeFavicon(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -26,9 +26,9 @@ class ChromeHistory(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -22,9 +22,9 @@ class Contacts(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -24,9 +24,9 @@ class FirefoxFavicon(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -28,9 +28,9 @@ class FirefoxHistory(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -26,9 +26,9 @@ class IDStatusCache(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -24,9 +24,9 @@ class InteractionC(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -25,9 +25,9 @@ class LocationdClients(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -25,9 +25,9 @@ class Datausage(NetBase):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -25,9 +25,9 @@ class OSAnalyticsADDaily(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -26,9 +26,9 @@ class SafariBrowserState(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -30,9 +30,9 @@ class SafariHistory(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -27,9 +27,9 @@ class Shortcuts(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -25,9 +25,9 @@ class SMS(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -25,9 +25,9 @@ class SMSAttachments(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -49,9 +49,9 @@ class TCC(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -26,9 +26,9 @@ class WebkitResourceLoadStatistics(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -33,9 +33,9 @@ class WebkitSessionResourceLog(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -24,9 +24,9 @@ class Whatsapp(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
|
@ -20,9 +20,9 @@ class NetBase(IOSExtraction):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: Optional[str] = "",
|
||||
target_path: Optional[str] = "",
|
||||
results_path: Optional[str] = "",
|
||||
file_path: Optional[str] = None,
|
||||
target_path: Optional[str] = None,
|
||||
results_path: Optional[str] = None,
|
||||
fast_mode: Optional[bool] = False,
|
||||
log: logging.Logger = logging.getLogger(__name__),
|
||||
results: Optional[list] = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user