Skip to content

Commit

Permalink
hotfix ps command
Browse files Browse the repository at this point in the history
  • Loading branch information
spenceradolph committed Apr 19, 2024
1 parent a384e5d commit 76fc68c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Payload_Type/sliverimplant/sliverimplant/agent_functions/ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
)

Expand Down

0 comments on commit 76fc68c

Please sign in to comment.