dissect.target.plugins.os.unix.esxi._os
#
Module Contents#
Classes#
ESXi OS plugin |
Functions#
Attributes#
- dissect.target.plugins.os.unix.esxi._os.HAS_ENVELOPE = True#
- dissect.target.plugins.os.unix.esxi._os.VirtualMachineRecord#
- class dissect.target.plugins.os.unix.esxi._os.ESXiPlugin(target: dissect.target.target.Target)#
Bases:
dissect.target.plugins.os.unix._os.UnixPlugin
ESXi OS plugin
ESXi partitioning varies between versions. Generally, specific partition numbers have special meaning.
- The following is a list of known partition numbers:
1: EFI boot 5: BOOTBANK1 6: BOOTBANK2 7: vmkcore (ESXi 6), OSDATA / LOCKER (ESXi 7) 8: store (ESXi 6), HDD VMFS datastore (ESXi 7) 9: vmkcore (ESXi 6)
- classmethod detect(target: dissect.target.target.Target) dissect.target.filesystem.Filesystem | None #
Provide detection of this OSPlugin on a given filesystem.
- Parameters:
fs –
Filesystem
to detect the OS on.- Returns:
The root filesystem / sysvol when found.
- classmethod create(target: dissect.target.target.Target, sysvol: dissect.target.filesystem.Filesystem) ESXiPlugin #
Initiate this OSPlugin with the given target and detected filesystem.
- Parameters:
target – The
Target
object.sysvol – The filesystem that was detected in the
detect()
function.
- Returns:
An instantiated version of the OSPlugin.
- hostname() str #
Return the target’s hostname.
- Returns:
The hostname as string.
- domain() str | None #
- ips() list[str] #
Return the IP addresses configured in the target.
- Returns:
The IPs as list.
- version() str | None #
Return the target’s OS version.
- Returns:
The OS version as string.
- vm_inventory() Iterator[VirtualMachineRecord] #
- esxconf(path: str, as_json: bool) None #
- configstore() dict[str, Any] #
- os()#
Return a slug of the target’s OS name.
- Returns:
A slug of the OS name, e.g. ‘windows’ or ‘linux’.
- dissect.target.plugins.os.unix.esxi._os.parse_boot_cfg(fh: TextIO) dict[str, str] #
- dissect.target.plugins.os.unix.esxi._os.parse_esx_conf(fh: TextIO) dict[str, Any] #
- dissect.target.plugins.os.unix.esxi._os.parse_config_store(fh: BinaryIO) dict[str, Any] #