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

Function TestCd_Command_Windows

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

Source from the content-addressed store, hash-verified

156}
157
158func TestCd_Command_Windows(t *testing.T) {
159 cmd := cdCommand("Windows", &implantpb.Request{Args: []string{"C:\\Users"}})
160 if !strings.Contains(cmd, `cd /d`) {
161 t.Errorf("Windows cd: got %q", cmd)
162 }
163}
164
165func TestChmod_Command_Linux(t *testing.T) {
166 cmd := chmodCommand("Linux", &implantpb.Request{Args: []string{"755", "/usr/local/bin/app"}})

Callers

nothing calls this directly

Calls 1

cdCommandFunction · 0.85

Tested by

no test coverage detected