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

Function TestNetstat_Command_Linux

internal/bridge/module_shell_test.go:15–20  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Command builder tests — verify each adapter generates correct OS commands ---------------------------------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

13// ---------------------------------------------------------------------------
14
15func TestNetstat_Command_Linux(t *testing.T) {
16 cmd := netstatCommand("Linux", &implantpb.Request{})
17 if !strings.Contains(cmd, "ss -tulnp") {
18 t.Errorf("Linux netstat should use ss, got: %s", cmd)
19 }
20}
21
22func TestNetstat_Command_Windows(t *testing.T) {
23 cmd := netstatCommand("Windows", &implantpb.Request{})

Callers

nothing calls this directly

Calls 1

netstatCommandFunction · 0.85

Tested by

no test coverage detected