mirror of
https://github.com/mvt-project/mvt.git
synced 2026-10-19 22:17:20 +02:00
Add Android bugreport schema version
This commit is contained in:
2 files changed
+4
No files matched your search
@@ -53,6 +53,7 @@ class CmdAndroidCheckBugreport(Command):
|
||||
|
||||
self.platform = "android"
|
||||
self.name = "check-bugreport"
|
||||
self.output_schema_version = 2
|
||||
self.modules = BUGREPORT_MODULES
|
||||
|
||||
self.__format: str = ""
|
||||
|
||||
@@ -54,6 +54,7 @@ class Command:
|
||||
) -> None:
|
||||
self.name = ""
|
||||
self.platform = ""
|
||||
self.output_schema_version: Optional[int] = None
|
||||
self.modules: list[type[MVTModule]] = []
|
||||
self.custom_modules = custom_modules if custom_modules else []
|
||||
|
||||
@@ -186,6 +187,8 @@ class Command:
|
||||
"ioc_files": [],
|
||||
"hashes": [],
|
||||
}
|
||||
if self.output_schema_version is not None:
|
||||
info["output_schema_version"] = self.output_schema_version
|
||||
|
||||
for coll in self.iocs.ioc_collections:
|
||||
ioc_file_path = coll.get("stix2_file_path", "")
|
||||
|
||||
Reference in new issue
Block a user