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

Function TestCat_Command_Windows

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

Source from the content-addressed store, hash-verified

88}
89
90func TestCat_Command_Windows(t *testing.T) {
91 cmd := catCommand("Windows", &implantpb.Request{Args: []string{"C:\\file.txt"}})
92 if !strings.Contains(cmd, "type") {
93 t.Errorf("Windows cat should use type, got: %q", cmd)
94 }
95}
96
97func TestEnv_Command_Linux(t *testing.T) {
98 if cmd := envCommand("Linux", nil); cmd != "env" {

Callers

nothing calls this directly

Calls 1

catCommandFunction · 0.85

Tested by

no test coverage detected