Source code for sslscan.module

from sslscan.config import ModuleConfig


[docs]class BaseModule(object): """ Base class used by all modules. It provides the basic functionality. """ config_options = [] def __init__(self, scanner=None, config=None): self._scanner = scanner self.config = ModuleConfig( module=self, options=self.config_options )
[docs] def get_scanner(self): """ Get the current scanner instance. """ return self._scanner
[docs] def set_scanner(self, scanner): """ Set the scanner instance the module was appended to. """ self._scanner = scanner