Forum » » Sécurité » » [Résolu] - bannir un PC
Posté : 10-03-2005 12:26 
function MacAddress($ip){
// $ip au format "93.125.24.23"
exec("ping -c 1 " . $ip);
exec("arp -a > arp.out");
$fileHandle = fopen ("arp.out", "r");
$ip_mac = split(" ", fgets($fileHandle, 4096));
fclose ($fileHandle);
echo "$ip_mac[3]";
}
Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=11559&forum=12