Movatterモバイル変換


[0]ホーム

URL:


Feross

Announcing SpoofMAC - Spoof your MAC address in Mac OS X

ByFeross Aboukhadijeh Tagged with

The quickest way to spoof your MAC address is todownload SpoofMAC directly from GitHub.

What is SpoofMAC?

Something I’ve needed to do from time to time isspoof my computer’s MAC address. This is useful for debugging network issues or temporarily getting onto the Stanford Wi-Fi network when my physical MAC address changes, such as whenApple replaced my logic board (motherboard).

For the uninitiated, aMedia Access Control address (MAC address) is “a unique identifier assigned to network interfaces for communications on the physical network segment”. You canread more on Wikipedia.

Despite the fact that all network devices (laptops, iPhones, routers, etc.) have physical MAC addresses burned into the hardware, you can actually change (or spoof) your MAC addresscompletely in software, and other network devices will only see your spoofed address.

Other Solutions Sucked

I was disappointed with the Mac OS X offering in this area. None of the existing stuff worked well. The biggest annoyance with most of the solutions I found was that the Wi-Fi card (Airport) needs to bemanually disassociated from any connected networks, in order for the change to be applied correctly. Doing this manually every time is annoying.

Also, OS X doesn’t let you permanently change your MAC address. Every time you restart your computer, your address gets reset back to whatever it was before. Fortunately, SpoofMAC contains the necessary files for setting this script to run at startup time, so your computer will always have the MAC address you want.

My Solution

So, I made a Python script that lets you change your MAC address in one command.Check it out and download it from Github. Improvements welcome!

That’s it!

Let me know in the comments if you find this useful.

Update (March 18, 2013)

Since uploading this to GitHub, SpoofMAC has received many useful code contributions. It now supports Windows and Linux, MAC address randomization, and more. I <3 open source!



You can discuss, upvote, or poke fun at this post over atHacker News.

(If you liked this, you might likeHow To Set Up Your Linode For Maximum Awesomeness.)

Thanks for reading!RSS Feed Icon

Feross Aboukhadijeh

I'mFeross, an entrepreneur, programmer, open source author, and mad scientist.

I maintain100+ packages on npm. All my code is freely accessible onGitHub and funded bymy supporters. I now offer asupport contract for companies and teams.

I build innovative projects likeWebTorrent, a streaming torrent client for the web,WebTorrent Desktop, a slick torrent app for Mac/Windows/Linux, andStandardJS, a JavaScript style guide, linter, and automatic code fixer.

I also work on fun projects likeBitMidi, a free MIDI file database,Play, a music video app, andStudy Notes, a study tool withcollege essay examples.

If you enjoyed this post, you shouldfollow me on Twitter.

Or, sign up to get an email whenever I write a post:

2011 .Net Magazine AwardsIn the news again...

[8]ページ先頭

©2009-2025 Movatter.jp