dissect.target.plugins.os.unix.shadow

Module Contents

Classes

ShadowPlugin

Unix shadow passwords plugin.

Functions

extract_crypt_details

Extract different parts of a shadow entry such as

Attributes

dissect.target.plugins.os.unix.shadow.UnixShadowRecord
class dissect.target.plugins.os.unix.shadow.ShadowPlugin(target: dissect.target.Target)

Bases: dissect.target.plugin.Plugin

Unix shadow passwords plugin.

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.

SHADOW_FILES = ['/etc/shadow', '/etc/shadow-']
passwords() Iterator[UnixShadowRecord]

Yield shadow records from /etc/shadow files.

Resources:
dissect.target.plugins.os.unix.shadow.extract_crypt_details(shent: dict) dict

Extract different parts of a shadow entry such as the used crypto algorithm, any parameters, the used salt and hash.