From e23c6de745af452d1fdb1c1850873690fc9e8f1e Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 20 Sep 2022 14:59:35 +0530 Subject: [PATCH] Agent: Remove no longer needed `island_url` parameter from CachingAgentBinaryRepository --- .../exploit/caching_agent_binary_repository.py | 3 +-- monkey/infection_monkey/monkey.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/monkey/infection_monkey/exploit/caching_agent_binary_repository.py b/monkey/infection_monkey/exploit/caching_agent_binary_repository.py index f74648eff..e7f00c54b 100644 --- a/monkey/infection_monkey/exploit/caching_agent_binary_repository.py +++ b/monkey/infection_monkey/exploit/caching_agent_binary_repository.py @@ -15,8 +15,7 @@ class CachingAgentBinaryRepository(IAgentBinaryRepository): request is actually sent to the island for each requested binary. """ - def __init__(self, island_url: str, island_api_client: IIslandAPIClient): - self._island_url = island_url + def __init__(self, island_api_client: IIslandAPIClient): self._lock = threading.Lock() self._island_api_client = island_api_client diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index 6a7e1cfb1..e53610326 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -315,7 +315,6 @@ class InfectionMonkey: puppet.load_plugin("ssh", SSHFingerprinter(), PluginType.FINGERPRINTER) agent_binary_repository = CachingAgentBinaryRepository( - island_url=f"https://{self._control_client.server_address}", island_api_client=self.island_api_client, ) exploit_wrapper = ExploiterWrapper(