Exemplo n.º 1
0
    def initialisation_phase_2(args):
        """ Second phase of the initialization process.

        :param dict args: parsed arguments from the command line.
        """
        db_config = ServiceLocator.get_component("db_config")
        db_config.init()
        Timer(db_config.Get('DATE_TIME_FORMAT'))
        ServiceLocator.get_component("db_plugin").init()
        ServiceLocator.get_component("config").init()
        ServiceLocator.get_component("zest").init()
        PluginHandler(args)
        Reporter()
        POutputDB()
        ServiceLocator.get_component("command_register").init()
        ServiceLocator.get_component("worklist_manager").init()
        Shell()
        PluginParams(args)
        SMB()
        InteractiveShell()
        Selenium()
        SMTP()
        SETHandler()
        ZAP_API()
Exemplo n.º 2
0
 def _mock_shell_and_create_smb(self):
     self._mock_and_assert_shell_call()
     self.smb = SMB(self.core_mock)
Exemplo n.º 3
0
 def before(self):
     self.smb = SMB(None)