(osName string, req *implantpb.Request)
| 184 | } |
| 185 | |
| 186 | func cpCommand(osName string, req *implantpb.Request) string { |
| 187 | src := firstArg(req) |
| 188 | dst := secondArg(req) |
| 189 | if isWindows(osName) { |
| 190 | return fmt.Sprintf(`copy "%s" "%s"`, src, dst) |
| 191 | } |
| 192 | return fmt.Sprintf(`cp -r "%s" "%s"`, src, dst) |
| 193 | } |
| 194 | |
| 195 | func mvCommand(osName string, req *implantpb.Request) string { |
| 196 | src := firstArg(req) |