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

Function TestKill_Command_Windows

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

Source from the content-addressed store, hash-verified

114}
115
116func TestKill_Command_Windows(t *testing.T) {
117 cmd := killCommand("Windows", &implantpb.Request{Args: []string{"1234"}})
118 if !strings.Contains(cmd, "taskkill") && !strings.Contains(cmd, "1234") {
119 t.Errorf("Windows kill: got %q", cmd)
120 }
121}
122
123func TestMkdir_Command_Linux(t *testing.T) {
124 cmd := mkdirCommand("Linux", &implantpb.Request{Args: []string{"/tmp/test"}})

Callers

nothing calls this directly

Calls 1

killCommandFunction · 0.85

Tested by

no test coverage detected