sshmitm.moduleparser.utils module

sshmitm.moduleparser.utils.is_handler_allowed(name, enabled, disabled)

Return True if name passes the enabled/disabled filter lists.

Special tokens: ALL matches every name, NONE matches nothing.

Parameters:
  • name (str)

  • enabled (list[str])

  • disabled (list[str])

Return type:

bool

sshmitm.moduleparser.utils.load_module(entry_point_class)

Action to be able to define BaseModule with the “add_module” method of the ModuleParser as command line parameter

Parameters:

entry_point_class (type[BaseModule])

Return type:

type[Action]

sshmitm.moduleparser.utils.set_module_kwargs(entry_point_class, **kwargs)
Parameters:
  • entry_point_class (type[BaseModule])

  • kwargs (Any)

Return type:

dict[str, Any]