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

Things To Do After Installing A Linux OS

Well, modern distributions today come equipped with most of the software and tools we require, still, it isn't 100% of what we call a full-loaded beast. Depending on your choice of Desktop Environment or Window Manager, you'd get default media players, file managing tools, document editing tools. To take full advantage, you gotta install your own choice of strain. 🌿

Wireless Hacking : How To Hack WPS Wi-Fi Netwoks

Hello, devils! Today I'm going to introduce you to a network security feature of Wi-Fi Protected Access (WPA) and Wi-Fi Protected Access II (WPA2) networks named Wi-Fi Protected Setup (WPS).The WPS was released as an additional security measure for WPA/WPA2 routers. WPA and WPA2 were security protocols which were far more secure than the former protocol, Wired Equivalent Privacy (WEP). It was found that the Pre-Shared Key (PSK) or simply,  password of WEP could be cracked very easily. Therefore, in 2003, WPA/WPA2 Wi-Fi security protocols were released. The WPS has a PIN feature to connect network devies to the Access Points. Later, it was found to have a major security bug which allowed hackers to crack the PIN and with the PIN, attackers could have access to the WPA-PSK/WPA2-PSK (Password). In this post, I'm going to teach you how to crack WPS of a router.