GithubHelp home page GithubHelp logo

alexxnica / spoof Goto Github PK

View Code? Open in Web Editor NEW

This project forked from feross/spoof

0.0 1.0 0.0 449 KB

Easily spoof your MAC address in OS X & Linux!

Home Page: http://feross.org/spoofmac/

License: MIT License

JavaScript 100.00%

spoof's Introduction

spoof travis npm downloads

Easily spoof your MAC address in OS X & Linux!

Node.js port of the popular SpoofMAC Python utility (GitHub: feross/SpoofMAC).

anonymous

Why?

I made this because changing your MAC address in OS X is harder than it should be. The Wi-Fi card needs to be manually disassociated from any connected networks in order for the change to apply correctly โ€“ super annoying! Doing this manually each time is tedious and lame.

Instead, just run spoof and change your MAC address in one command. Now for Linux, too!

Instructions for beginners

Here are some easy install instructions for complete beginners.

  1. Install node.js (it's a programming platform like Python, Java, etc.)

  2. Open Terminal. Let's use Spotlight to find it.

terminal

  1. Install spoof by typing this command and pressing Enter.
npm install spoof -g

That's it! spoof is installed.

  1. Now, let's print out the help page. Just like before, run this command in Terminal.
spoof --help
  1. Now, let's print out all our network devices.
spoof list
  1. Find the device you want to set or randomize the MAC address for in the list. Wi-Fi is usually called en0 on modern Macs. Then, run this command:
sudo spoof randomize en0

You may need to reconnect to the Wi-Fi hotspot you were connected to. But, that's it! Your MAC address is changed. You can confirm by re-running:

spoof list

Full command list

You can always see up-to-date usage instructions by running spoof --help.

List available devices

spoof list
- "Ethernet" on device "en0" with MAC address 70:56:51:BE:B3:00
- "Wi-Fi" on device "en1" with MAC address 70:56:51:BE:B3:01 currently set to 70:56:51:BE:B3:02
- "Bluetooth PAN" on device "en1"

List available devices, but only those on Wi-Fi

spoof list --wifi
- "Wi-Fi" on device "en0" with MAC address 70:56:51:BE:B3:6F

Randomize MAC address (requires root)

You can use the hardware port name, such as:

spoof randomize wi-fi

or the device name, such as:

spoof randomize en0

Set device MAC address to something specific (requires root)

spoof set 00:00:00:00:00:00 en0

Reset device to its original MAC address (requires root)

While not always possible (because sometimes the original hardware MAC isn't available), you can try setting the MAC address of a device back to its burned-in address using reset:

spoof reset wi-fi

(older versions of OS X may call it "airport" instead of "wi-fi")

On OS X, another option to reset your MAC address is to simply restart your computer. OS X doesn't preserve changes to your MAC address between restarts.

Linux support?

Linux support requires the ifconfig utility to be installed. It comes pre-installed with most Linux distributions.

Windows support?

If you need Windows support, consider using the Python version of this program, SpoofMAC. Or, please send a PR with Windows support and I'll accept it. You can see how it's implemented in the Python version. Thanks!

Automatically randomize MAC address on startup

If you want to set or randomize your MAC address and have it persist between restarts on OS X, consider using the Python version of this program, SpoofMAC, and following the instructions for running automatically on startup.

License

MIT. Copyright Feross Aboukhadijeh.

spoof's People

Contributors

feross avatar greenkeeperio-bot avatar taoeffect avatar haroenv avatar kevinji avatar kokarn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.