(osName string, req *implantpb.Request)
| 202 | } |
| 203 | |
| 204 | func chmodCommand(osName string, req *implantpb.Request) string { |
| 205 | mode := firstArg(req) |
| 206 | path := secondArg(req) |
| 207 | if isWindows(osName) { |
| 208 | return "echo chmod not supported on Windows" |
| 209 | } |
| 210 | return fmt.Sprintf(`chmod %s "%s"`, mode, path) |
| 211 | } |