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

Function TestPs_Command_Linux

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

Source from the content-addressed store, hash-verified

27}
28
29func TestPs_Command_Linux(t *testing.T) {
30 cmd := psCommand("Linux", &implantpb.Request{})
31 if !strings.Contains(cmd, "ps -eo") {
32 t.Errorf("Linux ps should use ps -eo, got: %s", cmd)
33 }
34}
35
36func TestPs_Command_Windows(t *testing.T) {
37 cmd := psCommand("Windows", &implantpb.Request{})

Callers

nothing calls this directly

Calls 1

psCommandFunction · 0.85

Tested by

no test coverage detected