Skip to content

Commit

Permalink
Update vmware layer metadata file warning to be less doom and gloom.
Browse files Browse the repository at this point in the history
  • Loading branch information
eve-mem committed Oct 13, 2023
1 parent 310b650 commit e45380f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion volatility3/framework/layers/vmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import contextlib
import logging
import struct
import os
from typing import Any, Dict, List, Optional

from volatility3.framework import constants, exceptions, interfaces
Expand Down Expand Up @@ -232,8 +233,10 @@ def stack(
)

if not vmss_success and not vmsn_success:
vmem_file_basename = os.path.basename(location)
example_vmss_file_basename = os.path.basename(vmss)
vollog.warning(
f"No metadata file alongside VMEM file! A VMSS or VMSN file is required to correctly process a VMEM file. These should be placed in the same directory with the same file name, e.g. sample.vmem and sample.vmsn.",
f"No metadata file found alongside VMEM file. A VMSS or VMSN file may be required to correctly process a VMEM file. These should be placed in the same directory with the same file name, e.g. {vmem_file_basename} and {example_vmss_file_basename}.",
)
return None
new_layer_name = context.layers.free_layer_name("VmwareLayer")
Expand Down

0 comments on commit e45380f

Please sign in to comment.