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

Function TestCd_Command_Linux

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

Source from the content-addressed store, hash-verified

149}
150
151func TestCd_Command_Linux(t *testing.T) {
152 cmd := cdCommand("Linux", &implantpb.Request{Args: []string{"/home"}})
153 if !strings.Contains(cmd, `cd "/home" && pwd`) {
154 t.Errorf("Linux cd: got %q", cmd)
155 }
156}
157
158func TestCd_Command_Windows(t *testing.T) {
159 cmd := cdCommand("Windows", &implantpb.Request{Args: []string{"C:\\Users"}})

Callers

nothing calls this directly

Calls 1

cdCommandFunction · 0.85

Tested by

no test coverage detected