(osName string, req *implantpb.Request)
| 72 | } |
| 73 | |
| 74 | func 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 | |
| 81 | func psResponse(output, osName string, req *implantpb.Request) *implantpb.Spite { |
| 82 | resp := parsePsOutput(output, osName) |