1
0
moha/presence.php

19 lines
287 B
PHP
Raw Normal View History

2022-08-28 23:44:21 +02:00
<?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();
?>