--------------------------------------------------------------------------- Structured response modules ---------------------------------------------------------------------------
(osName string, req *implantpb.Request)
| 57 | // --------------------------------------------------------------------------- |
| 58 | |
| 59 | func netstatCommand(osName string, req *implantpb.Request) string { |
| 60 | if isWindows(osName) { |
| 61 | return "netstat -ano" |
| 62 | } |
| 63 | return "ss -tulnp 2>/dev/null || netstat -tulnp 2>/dev/null" |
| 64 | } |
| 65 | |
| 66 | func netstatResponse(output, osName string, req *implantpb.Request) *implantpb.Spite { |
| 67 | resp := parseNetstatOutput(output, osName) |