dissect.target.plugins.os.unix.bsd._os¶
Module Contents¶
Classes¶
UNIX plugin. |
- class dissect.target.plugins.os.unix.bsd._os.BsdPlugin(target: dissect.target.target.Target)¶
Bases:
dissect.target.plugins.os.unix._os.UnixPluginUNIX plugin.
- classmethod detect(target: dissect.target.target.Target) dissect.target.filesystem.Filesystem | None¶
Provide detection of this OSPlugin on a given filesystem.
- Parameters:
fs –
Filesystemto detect the OS on.- Returns:
The root filesystem / sysvol when found.
- os() str¶
Return a slug of the target’s OS name.
- Returns:
A slug of the OS name, e.g. ‘windows’ or ‘linux’.
- hostname() str | None¶
Return the target’s hostname.
- Returns:
The hostname as string.
- ips() list[str] | None¶
Return the IP addresses configured in the target.
- Returns:
The IPs as list.