In this article we are going to discuss about manually and automatically method of mac spoofing over Linux operating system.
What is MAC spoofing?
MAC spoofing is a method used to convert a Media Access Control (MAC) address assigned to a network communication factory to a network device. The coded MAC address in the network interface control (NIC) cannot be changed. However, many drivers allow the MAC address to be changed.
The MAC address of the computer is a unique identifier assigned to the network connection in the network segment data connection.
Media Access Control (MAC) address is a standard method of wireless network protection. This is where you configure your APs to enable only wireless clients with known MAC addresses to connect to the network. In that case, the most common hack to combat wireless networks, is to hijack the MAC address.
Hackers can simply disperse UNIX MAC addresses, using the ifconfig command, and Windows, using the SMAC device or other tools.
If someone is hosting or exchanging one of your MAC addresses, the only way to find a risky behavior is to raise awareness of the situation by seeing the same MAC address used in two or more locations on the WLAN, which can be difficult.
How To Spoof MAC Address in Linux?
Let’s change MAC address in Linux operating system using manually and automatically method.
Also See: To change MAC address in Windows
1. Method:- Mac Spoof Manually
Step 1. Open Terminal and type ifconfig to see all the network card details.
#>ifconfig
Here you can see current address is 66:7d:00:7a:9b:e9 , now we need to change it.
Step 2. Open Terminal and type ifconfig wlan0 down for disable wireless card
#>ifconfig wlan0 down
Step 3. Open Terminal and type ifconfig wlan0 hw ether 00:11:22:33:44:55 where hw is for hardware, 00:11:22:33:44:55 is Mac address.
#>ifconfig wlan0 hw ether 00:11:22:33:44:55
Step 4. Open Terminal and type ifconfig wlan0 up for enable wireless card
#>ifconfig wlan0 up
Step 5. Open Terminal and type ifconfig for see all the network card details.
#>ifconfig
Now MAC Address changed successfully from 66:7d:00:7a:9b:29 to 00:11:22:33:44:55
Done.
2. Method:- Mac Spoof Automatically
Step 1. Open Terminal and type ifconfig for see all the network card details
#>ifconfig
As you can see your current MAC address is 66:7d:00:7a:9b:e9
Step 2. Open Terminal and type ifconfig wlan0 down for disable wireless card
#>ifconfig wlan0 down
Step 3. Open Terminal and type macchanger -m 00:11:22:33:44:55 for change Mac address.
#>macchanger -m 00:11:22:33:44:55
New MAC address has changed to 00:11:22:33:44:55
Step 4. Open Terminal and type ifconfig wlan0 up for enable wireless card
#>ifconfig wlan0 up
Step 5. Open Terminal and type ifconfig for see all the network card details
#>ifconfig
DONE.