(osName string, req *implantpb.Request)
| 176 | } |
| 177 | |
| 178 | func rmCommand(osName string, req *implantpb.Request) string { |
| 179 | path := firstArg(req) |
| 180 | if isWindows(osName) { |
| 181 | return fmt.Sprintf(`del /f /q "%s" 2>nul & rmdir /s /q "%s" 2>nul`, path, path) |
| 182 | } |
| 183 | return fmt.Sprintf(`rm -rf "%s"`, path) |
| 184 | } |
| 185 | |
| 186 | func cpCommand(osName string, req *implantpb.Request) string { |
| 187 | src := firstArg(req) |