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

Function TestCat_Command_Linux

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

Source from the content-addressed store, hash-verified

81}
82
83func TestCat_Command_Linux(t *testing.T) {
84 cmd := catCommand("Linux", &implantpb.Request{Args: []string{"/etc/passwd"}})
85 if !strings.Contains(cmd, `cat "/etc/passwd"`) {
86 t.Errorf("Linux cat: got %q", cmd)
87 }
88}
89
90func TestCat_Command_Windows(t *testing.T) {
91 cmd := catCommand("Windows", &implantpb.Request{Args: []string{"C:\\file.txt"}})

Callers

nothing calls this directly

Calls 1

catCommandFunction · 0.85

Tested by

no test coverage detected