From 76fc68cada5084cfca4018b7aadeb46c4db79694 Mon Sep 17 00:00:00 2001 From: spenceradolph Date: Fri, 19 Apr 2024 23:58:38 +0000 Subject: [PATCH] hotfix ps command --- .../sliverimplant/agent_functions/ps.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Payload_Type/sliverimplant/sliverimplant/agent_functions/ps.py b/Payload_Type/sliverimplant/sliverimplant/agent_functions/ps.py index dfc1e1e..8e31eb7 100644 --- a/Payload_Type/sliverimplant/sliverimplant/agent_functions/ps.py +++ b/Payload_Type/sliverimplant/sliverimplant/agent_functions/ps.py @@ -47,16 +47,16 @@ async def create_go_tasking(self, taskData: MythicCommandBase.PTTaskMessageAllDa ps_results = await ps(taskData) processes = [] - for ps in ps_results: + for individual_ps in ps_results: processes.append( MythicRPCProcessCreateData( Host=taskData.Callback.Host, - ProcessID=ps.Pid, - ParentProcessID=ps.Ppid, - Name=ps.Executable, - User=ps.Owner, - Architecture=ps.Architecture, - CommandLine=" ".join(ps.CmdLine), + ProcessID=individual_ps.Pid, + ParentProcessID=individual_ps.Ppid, + Name=individual_ps.Executable, + User=individual_ps.Owner, + Architecture=individual_ps.Architecture, + CommandLine=" ".join(individual_ps.CmdLine), ) )