Skip to main content

Most Viewed Post

Wireless Hacking : How To Hack WPS Wi-Fi Netwoks

How To Change MAC Address in Linux

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. :)

Comments

Popular posts from this blog

Post Empty Status Update (Facebook)

Whenever we open Facebook, the first thing it asks is - " What's on your mind? ". You can type anything there and share it with your friends and family. Guess what will be the reaction on your friends if you post an empty status update ...... Cool! Ain't it? See full post to know the way to do it.

How To Create Strong Password

My last post taught you about making your PC say something. This post is gonna teach you creating strong passwords. Password is a secret word or phrase that must be used to gain admission to something... It allows you gain access to a computer, interface or a system. As pentesting is one of my interests, it's my daily work to crack passwords and make my system more secure. We, network security administrators know the methods to crack weak passwords easily and trust me, even a noob or script kiddie can crack them just by using some tools. A lot of noobs try social engineering too to gain access to your important stuff. If you have a strong password, it's difficult for people to guess it and hence, your account remains safe and secure.

Detecting the Operating System manually through open ports

It's Friday evening. You got no plans for the weekend and you're sitting at your machine with a cup containing caffeine by your side. You hate that motherfucker in your class who gets everyone's attention as he always pretends being a hacker by using the phishing method to store and change people's Facebook's passwords. He hacked the college Wi-Fi without having any skills. You know he's just a script kiddie. Time to check what he really is!