This dont work. I even logged in as admin user but it still dont change (AirPort=en1) MAC address.
Same happens in Terminal if i “use sudo ifconfig en1 ether 11:22:33:44:55:66”.
do shell script "sudo ifconfig en1 ether 11:22:33:44:55:66" with administrator privileges
set new_addr to do shell script "ifconfig en1 | grep ether | cut -b \"8-24\"" --test new address
Mac Addresses are embedded in the hardware itself, so Apple won’t let you “spoof” any of theirs. Some routers can spoof MAC addresses, eg LinkSys. This is usually done so that the wide area network DHCP server sees the router as having a specific address for IP address assignments on systems that use MAC to identify a particular machine for that purpose. Universities and businesses often do this on their internal networks to prevent non-students/faculty/staff from getting an IP Address or to restrict access to specific places where those students need it (i.e. a specific department’s server).
What system are you on. I tried to do it a while back and from the research I did you can change your Ethernet address (en0) but not airport. I think it only applies to the newer machines so that might explain why people have been able to do it. Are you on newer hardware than the people who have successfully done it. I can’t with my MBP 15" (1st gen)…
I have done this in many older iBook G4 using SpoofMac, but if i try to do it using AppleScript or Terminal then it fails. SpoofMac uses most likely some unix command which works. Is there any way to find out what command it uses?