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

Function TestNetstat_Command_Windows

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

Source from the content-addressed store, hash-verified

20}
21
22func TestNetstat_Command_Windows(t *testing.T) {
23 cmd := netstatCommand("Windows", &implantpb.Request{})
24 if cmd != "netstat -ano" {
25 t.Errorf("Windows netstat: got %q, want %q", cmd, "netstat -ano")
26 }
27}
28
29func TestPs_Command_Linux(t *testing.T) {
30 cmd := psCommand("Linux", &implantpb.Request{})

Callers

nothing calls this directly

Calls 1

netstatCommandFunction · 0.85

Tested by

no test coverage detected