1
0

new script presence.php\ndebug

This commit is contained in:
2022-08-28 23:44:21 +02:00
parent b5c30b1ae4
commit 2b4fc54071
4 changed files with 38 additions and 6 deletions

18
presence.php Normal file
View File

@ -0,0 +1,18 @@
<?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();
?>