From 5f44cf1d6cbd603c9d6aced3818a6f537feb945a Mon Sep 17 00:00:00 2001 From: Schamper <1254028+Schamper@users.noreply.github.com> Date: Tue, 30 Jul 2024 14:30:26 +0200 Subject: [PATCH] Fix UTM loader to skip non-disks --- dissect/target/loaders/utm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dissect/target/loaders/utm.py b/dissect/target/loaders/utm.py index 92a133ee8..01d40d932 100644 --- a/dissect/target/loaders/utm.py +++ b/dissect/target/loaders/utm.py @@ -21,6 +21,9 @@ def detect(path: Path) -> bool: def map(self, target: Target) -> None: data_dir = self.path.joinpath("Data") for drive in self.config.get("Drive", []): + if drive.get("ImageType") != "Disk": + continue + path = data_dir.joinpath(drive["ImageName"]) try: target.disks.add(container.open(path))