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

Function TestChmod_Command_Windows

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

Source from the content-addressed store, hash-verified

170}
171
172func TestChmod_Command_Windows(t *testing.T) {
173 cmd := chmodCommand("Windows", &implantpb.Request{Args: []string{"755", "C:\\app.exe"}})
174 if !strings.Contains(cmd, "not supported") {
175 t.Errorf("Windows chmod should say not supported, got: %q", cmd)
176 }
177}
178
179// ---------------------------------------------------------------------------
180// Response builder tests

Callers

nothing calls this directly

Calls 1

chmodCommandFunction · 0.85

Tested by

no test coverage detected