MAC (Media Access Control) address is a unique identifier which is assigned to every network interface when it is made in factory. MAC spoofing refers to the technique by which you can change that address. In this tutorial, I'm gonna show you how to change the MAC address in Linux Operating System.
NOTE: I'm writing this tutorial for educational purposes only. I will not be responsible for any illegal hacking done by following this tutorial.
You need to install a tool called 'macchanger' in your system. If you already have macchanger installed, skip this paragraph. Else, continue.
Fire up your Linux distro and open terminal. Go root and type:
apt-get install macchanger
Or you can download it from here: http://ftp.gnu.org/gnu/macchanger/
After installing macchanger, you have to turn off your interface so you can change your MAC address.
Currently I'm using WiFi service so my interface is wlan0. If you're using ethernet port or external adapter in a VM, your interface will be eth0.
To turn off the interface, use this command:
ifconfig [interface] down
Use your own interface eth0/wlan0 instead of [interface]. This will turn off your interface. Then you won't see your interface in ifconfig command's output.
As you can see, my current MAC address is ae:4b:3e:bf:26:9e.
I'm gonna change it to a random address now.
The syntax of macchanger command is:
macchanger [option] [interface]
As I'm changing it to a random address, I will use -r switch. You can see the complete list of all switches by typing macchanger --help.
macchanger -r wlan0
After using macchanger command, turn on the interface using:
ifconfig wlan0 up
Now you have changed your MAC address successfully.
:evil smile:
If you want to set a custom MAC address, use -m switch. The MAC address is in this format - XX:XX:XX:XX:XX:XX. Let's set 00:11:22:33:44:55 as our spoofed MAC address.
Use the same procedure. Turn off the interface>Change MAC using macchanger>Turn on the interface.
If you do it correctly, you can change your MAC address as desired.
Thanks for reading. :)
NOTE: I'm writing this tutorial for educational purposes only. I will not be responsible for any illegal hacking done by following this tutorial.
You need to install a tool called 'macchanger' in your system. If you already have macchanger installed, skip this paragraph. Else, continue.
Fire up your Linux distro and open terminal. Go root and type:
apt-get install macchanger
Or you can download it from here: http://ftp.gnu.org/gnu/macchanger/
After installing macchanger, you have to turn off your interface so you can change your MAC address.
Currently I'm using WiFi service so my interface is wlan0. If you're using ethernet port or external adapter in a VM, your interface will be eth0.
To turn off the interface, use this command:
ifconfig [interface] down
Use your own interface eth0/wlan0 instead of [interface]. This will turn off your interface. Then you won't see your interface in ifconfig command's output.
As you can see, my current MAC address is ae:4b:3e:bf:26:9e.
I'm gonna change it to a random address now.
The syntax of macchanger command is:
macchanger [option] [interface]
As I'm changing it to a random address, I will use -r switch. You can see the complete list of all switches by typing macchanger --help.
macchanger -r wlan0
After using macchanger command, turn on the interface using:
ifconfig wlan0 up
:evil smile:
If you want to set a custom MAC address, use -m switch. The MAC address is in this format - XX:XX:XX:XX:XX:XX. Let's set 00:11:22:33:44:55 as our spoofed MAC address.
Use the same procedure. Turn off the interface>Change MAC using macchanger>Turn on the interface.
Thanks for reading. :)
Comments
Post a Comment