When you are anonymizing your system for penetration testing there are a number of steps you follow. At some point, you also change or fake your mac address so your original device network card’s hardware MAC address is hidden. To do so you can use a tool macchanger which is already present in Kali Linux.
If you are using a penetrating testing distro like a parrot or kali it is already present in it, so right now we will give priority to only penetration testing operating systems as the majority of users is there only. But still, if you need you can clone the repo from GitHub you can use this link of macchanger

Change random mac address: First lets change network card’s hardware MAC address to a random address. First, we will find the MAC address of the eth0 network interface. To do this we execute macchanger with an option -s and an argument eth0.
macchanger -s eth0
Now the network interface you are about to change a MAC address should be turned off before changing the mac address. Use ifconfig command to turn off your network interface:
ifconfig eth0 down
Now we can change the MAC address of the hardware by using the command
macchanger -r eth0
Once you have executed the command you can finally turn your network interface up
ifconfig eth0 down
Now you can display your MAC by using:
macchanger -s eth0
Change specific MAC address: You can use MAC changer to change MAC of your choice follow the commands
~ ifconfig eth0 down ~ macchanger -m 00:d0:70:00:20:69 eth0 ~ ifconfig eth0 up ~ macchanger -s eth0
Follow the same sequence as we did for random change, the only difference is that this time you have your specific MAC address with you. Use -l option to find a MAC address prefix of a specific hardware vendor:
~macchanger -l
Recommended Posts:
- Python script to change MAC address of Linux machine
- How to Change the username or userID in Kali Linux?
- How to Change Root Password in Kali Linux?
- Difference Between Arch Linux and Kali Linux
- How to Hack WPA/WPA2 WiFi Using Kali Linux?
- Getting into Android OS remotely using Kali Linux
- Kali Linux - Password Cracking Tool
- Difference Between Ubuntu and Kali Linux
- How to Install Lazy Script in Kali Linux?
- Kali Linux Tools
- What is Vulnerability Scanning in Kali Linux?
- Introduction to Kali Linux
- Kali Linux - File Management
- Kali Linux - Default Passwords
- Kali Linux - Crunch Utility
- How to Create Reverse Shells with Netcat in Kali Linux?
- Kali Linux - Terminal and Shell
- Kali Linux - Command Line Essentials
- Difference Between Fedora and Kali Linux
- Kali Linux - Exploitation Tools
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

