Skip to content

Commit

Permalink
fixed a bug where debugging process_response fields would try to acce…
Browse files Browse the repository at this point in the history
…ss process_container instead of process_response in the agent's response json
  • Loading branch information
its-a-feature committed Jan 31, 2023
1 parent a0ef642 commit 172992f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythic-docker/app/api/response_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 172992f

Please sign in to comment.