diff --git a/Payload_Type/apollo/Dockerfile b/Payload_Type/apollo/Dockerfile index 24cca026..83d1f43a 100644 --- a/Payload_Type/apollo/Dockerfile +++ b/Payload_Type/apollo/Dockerfile @@ -19,8 +19,6 @@ RUN /venv/bin/python -m pip install mslex COPY [".", "."] # fetch all dependencies -RUN cd apollo/agent_code && dotnet restore - -RUN cp /donut donut +RUN cd apollo/agent_code && dotnet restore && rm donut && cp /donut donut CMD ["/venv/bin/python", "main.py"] diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/builder.py b/Payload_Type/apollo/apollo/mythic/agent_functions/builder.py index 6c2cf720..545f3ff4 100644 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/builder.py +++ b/Payload_Type/apollo/apollo/mythic/agent_functions/builder.py @@ -184,7 +184,7 @@ async def build(self) -> BuildResponse: stderr=asyncio.subprocess.PIPE) stdout, stderr = await proc.communicate() - command = "{} -f 1 {}".format(donutPath, output_path) + command = "{} {}".format(donutPath, output_path) # need to go through one more step to turn our exe into shellcode proc = await asyncio.create_subprocess_shell(command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/execute_pe.py b/Payload_Type/apollo/apollo/mythic/agent_functions/execute_pe.py index 13d4f4f9..de3dd1e0 100644 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/execute_pe.py +++ b/Payload_Type/apollo/apollo/mythic/agent_functions/execute_pe.py @@ -173,7 +173,7 @@ async def create_go_tasking( donutPath, EXECUTE_PE_PATH, taskData.args.get_arg("pipe_name") ) else: - command = '{} -f 1 {} -p "{}"'.format( + command = '{} -i {} -p "{}"'.format( donutPath, EXECUTE_PE_PATH, taskData.args.get_arg("pipe_name") ) # print(command)