Create a deaddisk configuration (remapping) file, which can then be used to run
a virtual client with the --remap flag.
deaddisk [<flags>] <output>
Create a deaddisk configuration
--hostname="Virtual Host" The hostname to impersonate
--add_windows_disk=ADD_WINDOWS_DISK
Add a Windows Hard Disk Image
--offset=-1 The offset of the partition inside the disk
--add_windows_directory=ADD_WINDOWS_DIRECTORY
Add a Windows mounted directory
Args:
<output> Output file to write config on
For this command, either --add_windows_directory or --add_windows_disk is
required.
# a disk image
velociraptor deaddisk --add_windows_disk ./WinDev2404Eval.vmdk remapping.yaml
or
# a Windows partition mounted to a directory
velociraptor deaddisk --add_windows_directory /media/mnt/windows_c_drive/ remapping.yaml
velociraptor client -c ./client.config.yaml --remap ./remapping.yaml
The deaddisk command, by default, only supports Windows disk/partition images,
and Windows partitions mounted to folders.
From version 0.74.4 this CLI command uses the artifact
Generic.Utils.DeadDiskRemapping internally to generate the remapping
configuration file. You can use this artifact in the GUI if you prefer - the
resulting config will be identical since both methods use the same VQL.
It’s therefore essentially equivalent to running the query command:
velociraptor query "SELECT * FROM Artifact.Generic.Utils.DeadDiskRemapping(ImagePath='/path/to/image.dd', Hostname='Some Host')" --dump_dir .
or the artifacts collect and unzip commands:
velociraptor artifacts collect Generic.Utils.DeadDiskRemapping --args ImagePath='/path/to/image.dd' --args Hostname='Some Host' --output remapping.zip
velociraptor unzip remapping.zip /uploads/data/remapping.yaml
You can define your own customized version of the
Generic.Utils.DeadDiskRemapping artifact if the default artifact does not suit
your specific analysis requirements, for example simple (non-LVM) Linux systems
or non-NTFS disk images. If you load your custom artifact definition from a
folder using the --definitions flag then this will be used by the deaddisk
command. Note that this approach would only be necessary if you have a strong
reason to use the CLI (for example in an automated analysis pipeline) rather
than the GUI, since it’s much easier to create and use a custom version of the
artifact in the GUI.
See Dead disk Forensics for more information.