dissect.target.plugins.os.unix.linux.debian.proxmox._os¶
Module Contents¶
Classes¶
Linux plugin. |
|
Virtual file backed by a file-like object. |
|
Virtual directory implementation. Backed by a dict. |
Attributes¶
- class dissect.target.plugins.os.unix.linux.debian.proxmox._os.ProxmoxPlugin(target: dissect.target.target.Target)¶
Bases:
dissect.target.plugins.os.unix.linux.debian._os.DebianPluginLinux plugin.
- classmethod detect(target: dissect.target.target.Target) dissect.target.filesystem.Filesystem | None¶
Detect a Linux-like filesystem.
These days there is little difference in the filesystem format used by Unix and Linux. Both implementations use the Filesystem Hierarchy Standard (FHS). We can differentiate between Unix and Linux by checking for specific Linux kernel-only files not present on actual Unix filesystems (e.g. BSD, Solaris, IBM AIX and HP-UX).
References
- classmethod create(target: dissect.target.target.Target, sysvol: dissect.target.filesystem.Filesystem) typing_extensions.Self¶
Initiate this OSPlugin with the given target and detected filesystem.
- Parameters:
target – The
Targetobject.sysvol – The filesystem that was detected in the
detect()function.
- Returns:
An instantiated version of the OSPlugin.
- version() str¶
Returns Proxmox VE version with underlying OS release.
- os() str¶
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.linux.debian.proxmox._os.DT_DIR = 4¶
- dissect.target.plugins.os.unix.linux.debian.proxmox._os.DT_REG = 8¶
- class dissect.target.plugins.os.unix.linux.debian.proxmox._os.ProxmoxConfigFileEntry(fs: Filesystem, path: str, entry: Any)¶
Bases:
dissect.target.filesystem.VirtualFileVirtual file backed by a file-like object.
- open() BinaryIO¶
Open this filesystem entry.
- Returns:
A file-like object. Resolves symlinks when possible
- lstat() dissect.target.helpers.fsutil.stat_result¶
Determine the stat information of this entry, without resolving the symlinks.
When it detects a symlink, it will stat the information of the symlink, not the path it points to.
- Returns:
The stat information of this entry.
- class dissect.target.plugins.os.unix.linux.debian.proxmox._os.ProxmoxConfigDirectoryEntry(fs: dissect.target.filesystem.VirtualFilesystem, path: str, entry: dissect.database.sqlite3.Row)¶
Bases:
dissect.target.filesystem.VirtualDirectoryVirtual directory implementation. Backed by a dict.
- entry¶
- lstat() dissect.target.helpers.fsutil.stat_result¶
Return the stat information of the given path, without resolving links.