From a06c97ea8b33889d8bf95deedca6049e84825ab2 Mon Sep 17 00:00:00 2001 From: bjeffries Date: Tue, 3 Dec 2024 13:47:00 -0500 Subject: [PATCH] fixed encoded command ref --- app/api/v2/managers/operation_api_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/v2/managers/operation_api_manager.py b/app/api/v2/managers/operation_api_manager.py index 73d8beda9..e08ee9a8d 100644 --- a/app/api/v2/managers/operation_api_manager.py +++ b/app/api/v2/managers/operation_api_manager.py @@ -102,7 +102,7 @@ async def create_potential_link(self, operation_id: str, data: dict, access: Bas ability = self.build_ability(data=data.pop('ability', {}), executor=executor) for hook, fcall in executor.HOOKS.items(): await fcall(ability, executor) - encoded_command = self._encode_string(agent.replace(self._encode_string(executor.command), + encoded_command = self._encode_string(agent.replace(self._encode_string(data['executor']['command']), file_svc=self.services['file_svc'])) link = Link.load(dict(command=encoded_command, plaintext_command=encoded_command, paw=agent.paw, ability=ability, executor=executor, status=operation.link_status(), score=data.get('score', 0), jitter=data.get('jitter', 0),