marcus Posted November 11, 2007 Share Posted November 11, 2007 Is it possible to obtain somebodies MAC address using PHP. I am only doing this because I need to up some security on my website. Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted November 11, 2007 Share Posted November 11, 2007 not easily if at all. there is not command; you'd need to use an external command,e.g., arp. and then it still won't work unless a ton of criteria is met, which will only be met on very rare occassions. Quote Link to comment Share on other sites More sharing options...
marcus Posted November 12, 2007 Author Share Posted November 12, 2007 What kind of information is normally needed? Quote Link to comment Share on other sites More sharing options...
MadTechie Posted November 12, 2007 Share Posted November 12, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.