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

Function TestLs_Command_Windows

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

Source from the content-addressed store, hash-verified

55}
56
57func TestLs_Command_Windows(t *testing.T) {
58 cmd := lsCommand("Windows", &implantpb.Request{Args: []string{"C:\\Users"}})
59 if !strings.Contains(cmd, "dir /a") {
60 t.Errorf("Windows ls should use dir, got: %s", cmd)
61 }
62}
63
64func TestWhoami_Command(t *testing.T) {
65 cmd := whoamiCommand("Linux", &implantpb.Request{})

Callers

nothing calls this directly

Calls 1

lsCommandFunction · 0.85

Tested by

no test coverage detected