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

Function chmodCommand

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

Source from the content-addressed store, hash-verified

202}
203
204func 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}

Callers 2

TestChmod_Command_LinuxFunction · 0.85

Calls 3

firstArgFunction · 0.85
secondArgFunction · 0.85
isWindowsFunction · 0.85

Tested by 2

TestChmod_Command_LinuxFunction · 0.68