{"id":1183,"date":"2025-05-22T15:01:39","date_gmt":"2025-05-22T14:01:39","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1183"},"modified":"2025-05-22T15:01:39","modified_gmt":"2025-05-22T14:01:39","slug":"mwnci-openports-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-openports-function\/","title":{"rendered":"Mwnci openports() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>openports<strong>(<em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>openports()<\/i> function returns an array of integers representing the port numbers that are listening. If no ports are open, an empty array is returned.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"net\")\r\nprintln(openports())\r\n\r\n[22, 25, 631]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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(&#8220;net&#8221;) println(openports()) [22, 25, 631]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1183","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1183"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1183\/revisions"}],"predecessor-version":[{"id":1184,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1183\/revisions\/1184"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}