MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / cdCommand

Function cdCommand

internal/bridge/module_shell_adapters.go:150–156  ·  view source on GitHub ↗
(osName string, req *implantpb.Request)

Source from the content-addressed store, hash-verified

148}
149
150func 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)

Callers 2

TestCd_Command_LinuxFunction · 0.85
TestCd_Command_WindowsFunction · 0.85

Calls 2

firstArgFunction · 0.85
isWindowsFunction · 0.85

Tested by 2

TestCd_Command_LinuxFunction · 0.68
TestCd_Command_WindowsFunction · 0.68