(osName string, req *implantpb.Request)
| 148 | } |
| 149 | |
| 150 | func cdCommand(osName string, req *implantpb.Request) string { |
| 151 | path := firstArg(req) |
| 152 | if isWindows(osName) { |
| 153 | return fmt.Sprintf(`cd /d "%s" && cd`, path) |
| 154 | } |
| 155 | return fmt.Sprintf(`cd "%s" && pwd`, path) |
| 156 | } |
| 157 | |
| 158 | // --------------------------------------------------------------------------- |
| 159 | // Simple exec modules (return ExecResponse, no custom parser) |