Mwnci openports() Function

Syntax

openports(string)

Description

The openports() function returns an array of integers representing the port numbers that are listening. If no ports are open, an empty array is returned.

Example

include("net")
println(openports())

[22, 25, 631]