dissect.target.plugins.apps.webhosting.cpanel

Module Contents

Classes

CPanelPlugin

cPanel webhosting plugin.

Attributes

dissect.target.plugins.apps.webhosting.cpanel.CPanelLastloginRecord
dissect.target.plugins.apps.webhosting.cpanel.CPANEL_LASTLOGIN = '.lastlogin'
dissect.target.plugins.apps.webhosting.cpanel.CPANEL_LOGS_PATH = '/usr/local/cpanel/logs'
dissect.target.plugins.apps.webhosting.cpanel.CPANEL_LASTLOGIN_PATTERN
class dissect.target.plugins.apps.webhosting.cpanel.CPanelPlugin(target: dissect.target.Target)

Bases: dissect.target.plugin.Plugin

cPanel webhosting plugin.

__namespace__ = 'cpanel'

Defines the plugin namespace.

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.

lastlogin() Iterator[CPanelLastloginRecord]

Return the content of the cPanel lastlogin file.

The lastlogin files tracks successful cPanel interface logons. New logon events are only tracked if the IP-address of the logon changes.

References