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

Function TestPs_Command_Windows

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

Source from the content-addressed store, hash-verified

34}
35
36func TestPs_Command_Windows(t *testing.T) {
37 cmd := psCommand("Windows", &implantpb.Request{})
38 if !strings.Contains(cmd, "tasklist") {
39 t.Errorf("Windows ps should use tasklist, got: %s", cmd)
40 }
41}
42
43func TestLs_Command_Linux_DefaultPath(t *testing.T) {
44 cmd := lsCommand("Linux", &implantpb.Request{})

Callers

nothing calls this directly

Calls 1

psCommandFunction · 0.85

Tested by

no test coverage detected