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

Function TestRm_Command_Linux

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

Source from the content-addressed store, hash-verified

128}
129
130func TestRm_Command_Linux(t *testing.T) {
131 cmd := rmCommand("Linux", &implantpb.Request{Args: []string{"/tmp/test"}})
132 if !strings.Contains(cmd, "rm -rf") {
133 t.Errorf("Linux rm: got %q", cmd)
134 }
135}
136
137func TestCp_Command_Linux(t *testing.T) {
138 cmd := cpCommand("Linux", &implantpb.Request{Args: []string{"/a", "/b"}})

Callers

nothing calls this directly

Calls 1

rmCommandFunction · 0.85

Tested by

no test coverage detected