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

Module Contents

Classes

VyosPlugin

Linux plugin.

class dissect.target.plugins.os.unix.linux.debian.vyos._os.VyosPlugin(target: dissect.target.target.Target)

Bases: dissect.target.plugins.os.unix.linux._os.LinuxPlugin

Linux plugin.

target
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] | None

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

version() str

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’.