Computer Security, Privacy, Technology, Tutorials, Wireless Security

How To Change Your MAC Address And Computer Name In macOS

August 5, 2017

Two Methods For Changing The MAC Address in macOS

This article presents two methods for cloning your MAC Address in macOS.

  1. The first way is installing Homebrew, installing acrogenesis MAC changer, and using the MAC changer to easily clone your MAC address using automated options.
  2. The tedious and conventional way is manually changing your MAC Address which is more inconvenient at generating random MAC Addresses.

I prefer the first way which is way more awesome and only takes a couple of minutes to install the required components.

What Is Homebrew?

First of all, Homebrew is not some sort of alcoholic beverage. Rather, Homebrew essentially enables OS X to install the stuff you require that Apple never did.

The packages installed by Homebrew go into a separate directory and deploys symlinks into /usr/local.

Install Homebrew

Obviously, we have to first install Homebrew before being able to install a particular MAC Address changer which will easily change the MAC address and conveniently display the current MAC address without having to resort to the traditional ‘ifconfig

The first thing to do is open up a terminal on your Mac.

Type in the following:

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

If it says you lack the appropriate privileges, you may need to authorize by typing in ‘sudo

You will be presented with a message shortly: “Press RETURN to continue”

Finally, enter your password into the terminal.

 

Eventually, you will be presented with the message: “Installation successful

 

Install Acrogenesis MACChanger

The acrogenesis macchanger is an extremely convenient tool for cloning and displaying your MAC Address in macOS easily.

Install the macchanger by typing in terminal:

  • brew install acrogenesis/macchanger/macchanger

How To Check Your Current And Permanent MAC Address In macOS

You can check your computer’s current and permanent MAC Address before cloning it by simply typing into terminal:

  • ifconfig

Usually, the first ‘eth0’ or ‘en0’ then look for ‘ethe‘ and the MAC Address is beside it.

Note: You can use ifconfig after changing your MAC Address to determine whether you are successful in changing it.

How To Check Your Current MAC Address Using Acrogenesis MACChanger

Type the following command into terminal:

  • macchanger -s en0

You will see the message: “Your current mac address is:”

How To Manually Set A New MAC Address Using Acrogenesis MACChanger

Type the following command into terminal:

  • macchanger -m XX:XX:XX:XX:XX:XX en0

Replace the X‘s with the MAC Address of your choice and ‘en0‘ with your device.

How To Randomly Assign A New MAC Address Using Acrogenesis MACChanger

Type the following command into terminal:

  • macchanger -r en0

Once you have been assigned a new MAC Address, a message is shown: “Your mac address is:”

How To Display The Current MAC Address Using Acrogenesis MACChanger

Type the following command into terminal:

  • macchanger -s en0

How To Manually Change Your MAC Address In macOS

If you prefer to manually change your MAC Address without installing Homebrew and other tools, type the following into terminal:

  • sudo ifconfig en0 xx:xx:xx:xx:xx:xx

Replace the x‘s above with the ones you desire in a spoofed MAC Address.

If you want the command to generate a random MAC Address, then you shall type in the subsequent tedious command in terminal:

  • openssl rand –hex6 | sed  ‘s/\(..\)/\1:/g; s/.$//’  |  xargs  sudo  ifconfig  en0  ether

Whether you decide to manually change your MAC Address in macOS or change it easily with style by using Homebrew and acrogenesis, you have to remember that restarting your Mac system will cause its MAC Address to revert to the default.

Therefore, if you need to change the MAC Address in macOS, you’ll merely utilize one of the above methods in Terminal. You will likely want to restart your Internet connection after cloning the MAC Address to avoid stability problems.

Changing Your Computer Name In GUI of macOS

To change your computer name via GUI in macOS, go to:

  • Apple Logo > System Preferences > Sharing (Preference Panel)

Changing Your Computer Name In macOS Using scrutil Command

Or if you would like to change your computer name in terminal:

  • sudo scutil —set ComputerName “YourNewName”

Changing Your Host Name in macOS Using scutil Command

Since you’ve changed your computer name, you might as well change your host name.

Type into terminal the following command:

  • sudo scutil —set HostName “YourNewName”

Your macOS’s HostName refers to the name designated to the computer, the HostName is visible in Terminal, and it’s utilized by local and remote networks when connecting via SSH and Remote Login.

Changing Your Local Host Name in macOS Using scutil Command

Since you’ve changed your computer name and host name, you might as well change your local host name.

See what I just did there?

Type into terminal the subsequent command:

  • sudo scutil —set LocalHostName “YourName”

Your macOS’s LocalHostName refers to the name identifier utilized by Bonjour and discernible through file sharing services like AirDrop.

Lastly, flush the DNS cache by typing into terminal:

  • dscacheutil -flushcache
Conclusion

I hope you’ve enjoyed this tutorial. The advice in this article will certainly enhance the privacy of individuals who live in repressed and privacy violating societies.

Take care.

You Might Also Like

Back to top
%d bloggers like this: