PHP:
<?php
ini_set('memory_limit', -1);
ini_set('max_execution_time', 0);
include 'class.php';
header("Content-type:application/json");
$API = new API("");
$start = "0";
$stop = "1";
$done = true;
$res = $API->portscan("208.80.152.201", 0, 1);
$count = count($res);
while($done){
while($count == $stop){
$res = $API->portscan("208.80.152.201", 0, 1);
for($n = $start; $n <= $stop; $n++){
$return = NULL;
$return .= json_encode(
array(
$n => array(
'status' => $res[$n."_port"],
)
)
);
echo $return;
}
$done = false;
}
}
Ultima modifica di un moderatore: