dissect.target.plugins.os.unix.shadow¶
Module Contents¶
Classes¶
Unix shadow passwords plugin. |
Functions¶
Extract different parts of a shadow entry such as |
|
Convert a number representing the days since 1 January 1970 to a datetime object. |
Attributes¶
- dissect.target.plugins.os.unix.shadow.UnixShadowRecord¶
- class dissect.target.plugins.os.unix.shadow.ShadowPlugin(target: dissect.target.target.Target)¶
Bases:
dissect.target.plugin.PluginUnix shadow passwords plugin.
- SHADOW_FILES = ('/etc/shadow', '/etc/shadow-')¶
- check_compatible() None¶
Perform a compatibility check with the target.
This function should return
Noneif the plugin is compatible with the current target (self.target). For example, check if a certain file exists. Otherwise it should raise anUnsupportedPluginError.- Raises:
UnsupportedPluginError – If the plugin could not be loaded.
- passwords() collections.abc.Iterator[UnixShadowRecord]¶
Yield shadow records from /etc/shadow files.
References
- 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.
- dissect.target.plugins.os.unix.shadow.epoch_days_to_datetime(days: int) datetime.datetime¶
Convert a number representing the days since 1 January 1970 to a datetime object.