dissect.target.plugins.general.users

Module Contents

Classes

UserDetails

UsersPlugin

Internal plugin that provides helper functions for retrieving user details.

Attributes

dissect.target.plugins.general.users.UserRecord
class dissect.target.plugins.general.users.UserDetails

Bases: NamedTuple

user: UserRecord
home_path: dissect.target.helpers.fsutil.TargetPath | None
class dissect.target.plugins.general.users.UsersPlugin(target: dissect.target.Target)

Bases: dissect.target.plugin.InternalPlugin

Internal plugin that provides helper functions for retrieving user details.

__namespace__ = 'user_details'

Defines the plugin namespace.

find
check_compatible() None

Perform a compatibility check with the target.

This function should return None if the plugin is compatible with the current target (self.target). For example, check if a certain file exists. Otherwise it should raise an UnsupportedPluginError.

Raises:

UnsupportedPluginError – If the plugin could not be loaded.

get(user: UserRecord) UserDetails

Return additional details about the user

all() Iterator[UserDetails]

Return UserDetails objects for all users found

all_with_home() Iterator[UserDetails]

Return UserDetails objects for users that have existing directory set as home directory