Skip to content

Commit

Permalink
Fix UTM loader to skip non-disks (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamper authored Jul 31, 2024
1 parent ff47f07 commit 98d33d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dissect/target/loaders/utm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 98d33d0

Please sign in to comment.