Processes with listening (bound) network sockets/ports.

Platform support

Please be aware that some queries can only be run against certain platforms. Below is a list of the supported platforms that this query supports. Zercurity will automatically pause queries from running if errors are detected. Running a query against an unsupported platform will result in the following error: no such table: listening_ports

  • Windows
  • Linux
  • Mac OSX
  • Free BSD

Table schema

Name Type Description
pid INTEGER Process (or thread) ID
port INTEGER Transport layer port
protocol INTEGER Transport protocol (TCP/UDP)
family INTEGER Network protocol (IPv4, IPv6)
address TEXT Specific address for bind
fd BIGINT Socket file descriptor number
socket BIGINT Socket handle or inode number
path TEXT Path for UNIX domain sockets
net_namespace TEXT The inode number of the network namespace

Query examples

Select all the results for the given table.

SELECT * FROM listening_ports;