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

Function TestChmod_Command_Linux

internal/bridge/module_shell_test.go:165–170  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

163}
164
165func TestChmod_Command_Linux(t *testing.T) {
166 cmd := chmodCommand("Linux", &implantpb.Request{Args: []string{"755", "/usr/local/bin/app"}})
167 if !strings.Contains(cmd, `chmod 755`) {
168 t.Errorf("Linux chmod: got %q", cmd)
169 }
170}
171
172func TestChmod_Command_Windows(t *testing.T) {
173 cmd := chmodCommand("Windows", &implantpb.Request{Args: []string{"755", "C:\\app.exe"}})

Callers

nothing calls this directly

Calls 1

chmodCommandFunction · 0.85

Tested by

no test coverage detected