dissect.target.plugins.os.unix.log.btmp#

Module Contents#

Classes#

BtmpPlugin

btmp log records failed login attempts

Attributes#

dissect.target.plugins.os.unix.log.btmp.BtmpRecord#
class dissect.target.plugins.os.unix.log.btmp.BtmpPlugin(target: dissect.target.Target)#

Bases: dissect.target.plugin.Plugin

btmp log records failed login attempts

check_compatible()#

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.

btmp()#

Return failed login attempts stored in the btmp file.

On a Linux system, failed login attempts are stored in the btmp file located in the var/log/ folder.

References