Change MAC

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

Not sure what the problem is, but why on earth would you want to change your MAC 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).

I have many times spoofed MAC address in AirPort-card. I dont understand why i cant do it using Terminal/AppleScript, others can do it.

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?

SpoofMac http://www.versiontracker.com/dyn/moreinfo/macosx/28064

Try also:
AirPort Extreme MAC Address Changer
MacSpoofer
aspoof & xaaspoof

If en1 is your AirPort then try:

do shell script "sudo ifconfig en1 ether 11:22:33:44:55:66" with administrator privileges

(might work without “sudo”)

Or in Terminal:
sudo ifconfig en1 ether 11:22:33:44:55:66 (it might work without “sudo”)

You can test did address change using this code, new address dont show up in Network Pref Pane before you press Apply Now:

set newaddress to do shell script "ifconfig en1 | grep ether | cut -b \"8-24\""

Or in Terminal:
ifconfig en1 | grep ether | cut -b "8-24"

Hope this helps