dissect.target.plugins.os.unix.bsd._os

Module Contents

Classes

BsdPlugin

UNIX plugin.

class dissect.target.plugins.os.unix.bsd._os.BsdPlugin(target: dissect.target.target.Target)

Bases: dissect.target.plugins.os.unix._os.UnixPlugin

UNIX plugin.

classmethod detect(target: dissect.target.target.Target) dissect.target.filesystem.Filesystem | None

Provide detection of this OSPlugin on a given filesystem.

Parameters:

fsFilesystem to 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.