Island: Register AgentSignalsSerivce in DI Container

This commit is contained in:
Ilija Lazoroski 2022-09-22 17:34:57 +02:00 committed by Mike Salvatore
parent a04a6a3cea
commit f12e839878
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,7 @@ from monkey_island.cc.repository import (
)
from monkey_island.cc.server_utils.consts import MONKEY_ISLAND_ABS_PATH
from monkey_island.cc.server_utils.encryption import ILockableEncryptor, RepositoryEncryptor
from monkey_island.cc.services import AWSService
from monkey_island.cc.services import AgentSignalsService, AWSService
from monkey_island.cc.services.attack.technique_reports.T1003 import T1003, T1003GetReportData
from monkey_island.cc.services.run_local_monkey import LocalMonkeyRunService
from monkey_island.cc.setup.mongo.mongo_setup import MONGO_URL
@ -176,6 +176,7 @@ def _register_services(container: DIContainer):
container.register_instance(AWSService, container.resolve(AWSService))
container.register_instance(LocalMonkeyRunService, container.resolve(LocalMonkeyRunService))
container.register_instance(AuthenticationService, container.resolve(AuthenticationService))
container.register_instance(AgentSignalsService, container.resolve(AgentSignalsService))
def _dirty_hacks(container: DIContainer):