MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / psCommand

Function psCommand

internal/bridge/module_shell_adapters.go:74–79  ·  view source on GitHub ↗
(osName string, req *implantpb.Request)

Source from the content-addressed store, hash-verified

72}
73
74func psCommand(osName string, req *implantpb.Request) string {
75 if isWindows(osName) {
76 return "tasklist /FO CSV /NH"
77 }
78 return "ps -eo pid,ppid,user,comm,args --no-headers"
79}
80
81func psResponse(output, osName string, req *implantpb.Request) *implantpb.Spite {
82 resp := parsePsOutput(output, osName)

Callers 2

TestPs_Command_LinuxFunction · 0.85
TestPs_Command_WindowsFunction · 0.85

Calls 1

isWindowsFunction · 0.85

Tested by 2

TestPs_Command_LinuxFunction · 0.68
TestPs_Command_WindowsFunction · 0.68