9 lines
260 B
PHP
9 lines
260 B
PHP
<?php
|
|
require_once './lib/functions.php';
|
|
|
|
$result = '';
|
|
foreach(getOpenedPorts() as $port) {
|
|
$result .= $port['port'] . ' (' . $port['service'] . ') открыт<br>';
|
|
}
|
|
echo empty($result) ? 'Не обнаружено' : $result;
|