Original author here. Thanks, nh, for sharing this.<p>To those wondering why you would use SpoofMAC when you can just do `sudo ifconfig en1 ether 00:11:22:33:44:55:66`, let me explain why I wrote this.<p>The main advantage of SpoofMAC is that it automatically disassociates from any connected Wi-Fi networks before it changes your MAC address. The ensures the MAC change will be applied correctly. The biggest annoyance with doing it manually is figuring out how to dissociate manually, which usually requires trying to connect to a non-existant network.<p>After I put the code on GitHub, a few random contributors submitted patches for features like random MAC generation, etc. <3 open source.<p>Glad that so many are finding this useful.
There was a great article in 2600 Mag about scanning a network for devices that were already connected to a pay-to-play WiFi network. You could then change your mac address to a mac address already connected. You would then share the connection and bypass having to pay for WiFi. It was really handy at airports and coffee shops that would charge to get online.
Cool script--it has some useful features like generating a random MAC. But it's also possible to set your mac with:<p>sudo ifconfig [device] [mac]<p>...and one can replace [mac] with `openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'` for a random address.
What I really want is a tool which lets me masquerade (to nmap, etc.) as whatever kind of machine I want. Pick MAC addresses out of the correct range, but also change how the network stack, etc. respond to various passive and active attempts at fingerprinting.<p>It's eventually going to throw up alarms if your macbook pro osx 10.8.2 with an valid apple or intel MAC is on a network segment, then drops off, then a machine reappears with a DECstation MAC address.
Seems a bit silly to write a python script for this when most people have it in a bash function. I find running a python command through the interpreter like that to be cumbersome, but a good script nonetheless.<p>On another note: GO BEARS! Down with the tree!
If you are on windows , there is a small app to change your mac address easily: <a href="http://www.zokali.com/win7-mac-address-changer" rel="nofollow">http://www.zokali.com/win7-mac-address-changer</a>
Neato, I liked it so I cleaned it up/rewrote it a bit -> <a href="https://github.com/feross/SpoofMAC/pull/4" rel="nofollow">https://github.com/feross/SpoofMAC/pull/4</a>