Jump to content

Obtain MAC Address Using PHP


marcus

Recommended Posts

i think your do something like this on *nix

$temp = preg_split("/\s+/",exec("/sbin/ifconfig -a eth1 | /bin/grep
HWaddr"), -1, PREG_SPLIT_NO_EMPTY);
$sku_machine['MAC_addr_eth1'] = $temp[4];

 

Keep in mind that MAC Address are no longer unique (they used to be) but they are now being re-used, also you can spoof a MAC address along with IP's etc

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.