(osName string, req *implantpb.Request)
| 193 | } |
| 194 | |
| 195 | func mvCommand(osName string, req *implantpb.Request) string { |
| 196 | src := firstArg(req) |
| 197 | dst := secondArg(req) |
| 198 | if isWindows(osName) { |
| 199 | return fmt.Sprintf(`move "%s" "%s"`, src, dst) |
| 200 | } |
| 201 | return fmt.Sprintf(`mv "%s" "%s"`, src, dst) |
| 202 | } |
| 203 | |
| 204 | func chmodCommand(osName string, req *implantpb.Request) string { |
| 205 | mode := firstArg(req) |