From 172992f83afa4ab427754d87f19155b040a16b1b Mon Sep 17 00:00:00 2001 From: its-a-feature Date: Tue, 31 Jan 2023 06:32:28 -0800 Subject: [PATCH] fixed a bug where debugging process_response fields would try to access process_container instead of process_response in the agent's response json --- mythic-docker/app/api/response_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mythic-docker/app/api/response_api.py b/mythic-docker/app/api/response_api.py index 773e09960..eee886ceb 100755 --- a/mythic-docker/app/api/response_api.py +++ b/mythic-docker/app/api/response_api.py @@ -620,7 +620,7 @@ async def post_agent_response(agent_message, callback): rabbit_message["tasking_location"] = task.tasking_location if app.debugging_enabled: await send_all_operations_message( - message=f"Sending message to {task.callback.registered_payload.payload_type.ptype}'s container for processing of a 'process_response' message:\n{str(parsed_response['process_container'])}", + message=f"Sending message to {task.callback.registered_payload.payload_type.ptype}'s container for processing of a 'process_response' message:\n{str(parsed_response['process_response'])}", level="info", source="debug", operation=task.callback.operation) status = await send_pt_rabbitmq_message(payload_type=task.callback.registered_payload.payload_type.ptype, command="process_container", @@ -1110,7 +1110,7 @@ async def background_process_agent_responses(agent_responses: dict, callback: db rabbit_message["tasking_location"] = task.tasking_location if app.debugging_enabled: await send_all_operations_message( - message=f"Sending message to {task.callback.registered_payload.payload_type.ptype}'s container for processing of a 'process_response' message:\n{str(parsed_response['process_container'])}", + message=f"Sending message to {task.callback.registered_payload.payload_type.ptype}'s container for processing of a 'process_response' message:\n{str(parsed_response['process_response'])}", level="info", source="debug", operation=task.callback.operation) status = await send_pt_rabbitmq_message(payload_type=task.callback.registered_payload.payload_type.ptype, command="process_container",