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

Function mvCommand

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

Source from the content-addressed store, hash-verified

193}
194
195func 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
204func chmodCommand(osName string, req *implantpb.Request) string {
205 mode := firstArg(req)

Callers 1

TestMv_Command_LinuxFunction · 0.85

Calls 3

firstArgFunction · 0.85
secondArgFunction · 0.85
isWindowsFunction · 0.85

Tested by 1

TestMv_Command_LinuxFunction · 0.68