dissect.target.volumes.luks#

Module Contents#

Classes#

LUKSVolumeSystem

An extension of the VolumeSystem class that provides additional functionality for

Attributes#

log

dissect.target.volumes.luks.log#
exception dissect.target.volumes.luks.LUKSVolumeSystemError(message=None, cause=None, extra=None)#

Bases: dissect.target.exceptions.VolumeSystemError

A volume system error occurred.

class dissect.target.volumes.luks.LUKSVolumeSystem(fh: BinaryIO | list[BinaryIO], *args, **kwargs)#

Bases: dissect.target.volume.EncryptedVolumeSystem

An extension of the VolumeSystem class that provides additional functionality for dealing with encryption.

It adds helper functions for interacting with the KEYCHAIN, so that subclasses don’t have to manually interact with it.

Subclasses must set the PROVIDER class attribute to a unique string, e.g. bitlocker.

Parameters:

fh – The file-like object on which to open the encrypted volume system.

PROVIDER = 'luks'#
unlock_with_volume_encryption_key(key: bytes, keyslot: int | None = None) None#
unlock_with_passphrase(passphrase: str, keyslot: int | None = None) None#
unlock_with_key_file(key_file: pathlib.Path, keyslot: int | None = None) None#
unlock_volume() dissect.util.stream.AlignedStream#