dissect.target.plugins.os.unix.linux._os

Module Contents

Classes

LinuxPlugin

Linux plugin.

class dissect.target.plugins.os.unix.linux._os.LinuxPlugin(target: dissect.target.target.Target)

Bases: dissect.target.plugins.os.unix._os.UnixPlugin, dissect.target.plugins.os.unix.linux.network_managers.LinuxNetworkManager

Linux plugin.

network_manager
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

ips() list[str]

Returns a list of static IP addresses and DHCP lease IP addresses found on the host system.

dns() list[str]
dhcp() list[bool]
gateway() list[str]
interface() list[str]
netmask() list[str]
version() str | None

Return the target’s OS version.

Returns:

The OS version as string.

os() str

Return a slug of the target’s OS name.

Returns:

A slug of the OS name, e.g. ‘windows’ or ‘linux’.