mirror of
https://github.com/inspec/inspec
synced 2024-12-18 00:53:22 +00:00
f5780b69a4
netstat on UDP lines doesn't display a port state (e.g. LISTEN), so make this field optional when parsing the netstat line.
6 lines
605 B
Text
6 lines
605 B
Text
Active Internet connections (only servers)
|
|
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
|
|
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 21699 1/sshd
|
|
tcp6 0 48 2601:1:ad80:1445::54776 2620:0:861:52:208::6667 LISTEN 0 21702 2043/pidgin
|
|
tcp6 0 0 :::22 :::* LISTEN 0 21701 1/sshd
|
|
udp 0 0 0.0.0.0:111 0.0.0.0:* 0 8689 545/rpcbind
|