1
0
moha/presence.php

19 lines
287 B
PHP

<?php require "config/liste_telephones.php";
function presence()
{
$result = array();
$command = "sudo nmap -n -sP 192.168.1.*";
exec($command, $result);
var_dump($result);
foreach ($macAddresses as $name =>$value)
{
$key = array_search($value, $result);
}
}
presence();
?>