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

Function cpCommand

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

Source from the content-addressed store, hash-verified

184}
185
186func 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
195func mvCommand(osName string, req *implantpb.Request) string {
196 src := firstArg(req)

Callers 1

TestCp_Command_LinuxFunction · 0.85

Calls 3

firstArgFunction · 0.85
secondArgFunction · 0.85
isWindowsFunction · 0.85

Tested by 1

TestCp_Command_LinuxFunction · 0.68