TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

SpoofMAC - Spoof your MAC address in Mac OS X

126 pointsby nhover 12 years ago

10 comments

ferossover 12 years ago
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. &#60;3 open source.<p>Glad that so many are finding this useful.
评论 #5072001 未加载
pla3rhat3rover 12 years ago
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.
评论 #5071207 未加载
评论 #5071112 未加载
评论 #5071249 未加载
评论 #5074118 未加载
leohover 12 years ago
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.
评论 #5071158 未加载
评论 #5071039 未加载
评论 #5071122 未加载
评论 #5071228 未加载
rdlover 12 years ago
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.
评论 #5071807 未加载
pkill17over 12 years ago
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!
bjonathanover 12 years ago
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>
TkTechover 12 years ago
Neato, I liked it so I cleaned it up/rewrote it a bit -&#62; <a href="https://github.com/feross/SpoofMAC/pull/4" rel="nofollow">https://github.com/feross/SpoofMAC/pull/4</a>
gwsover 12 years ago
guys, what are practical use cases for spoofing your MAC address?
评论 #5071874 未加载
评论 #5072573 未加载
评论 #5071796 未加载
评论 #5073736 未加载
评论 #5075383 未加载
pokoleoover 12 years ago
Literally did this 10 minutes ago when connecting to hotel Wi-Fi.<p>`$ sudo ifconfig en1 ether 00:11:22:33:44:55:66`
nthitzover 12 years ago
Careful, you may be violating the CFAA by using tools such as this.
评论 #5072850 未加载