GCS Learn
MAC Spoofing
Author - GIGOCYBERSPACE
Republished - 22 October 2024
A MAC address is a very important address even than an IP address. If a hacker gets your MAC address, he can spoof your calls, messages and all your social life. Think of a MAC address like your network name. If your MAC address is change you may have a different identification. But now you're probably wondering; then what is the difference between IP and MAC address. Both identify you but theirs a little different from it. A MAC address identifies you locally while and IP address identifies you globally (around the world). Let's take a look at this image for example:
A you can see in the image a MAC address first identifies in the datalink layer of the OSI model before been identified by Ip address in the network area of the OSI model.
Also when packets are delivered to the internet, your MAC and both IP address is sent in your packet.
The name John Doe,acts as a MAC address to identify him(his rela name). While the home address is like an IP address(which shows where he is. So let's just conclude that your IP address holds your internet location, while your MAC identifies you on the internet. NletMAC addresses are usually altered in a system with:
- IFCONFIG
- With MACCCHANGER
Method 1: With ifconfig
This is a simple option with just the tool ifconfig. Fire up your terminal and active ifconfig:
root@kali: ~# sudo ifconfig
root@kalii: ~# ifconfig <name-of-interface> down
root@kali: ~# ifconfig <name-of-interface> hw ether <new-mac-address>
root@kali: ~# ifconfig <name-of-interface> up
As you can see, we only used ifconfig to spoof our MAC address. But just remember that always turn off your network interface and this requires root.This is only temporary; it will be changed to your
original MAC address when you restart
your computer.
Take note of original your MAC address before spoofing your MAC address.
Method 2: MacChanger
This is a second method that you can use to spoof our MAC address using Mac Changer. Mac Changer comes pre-installed in Kali Linux but if not available, on your system, you can install by:
root@kali: ~# sudo apt-get install macchanger
To install macchanger on CentOS, Fedora, AlmaLinux, and Red Hat:
root@kali: ~# sudo dnf install macchanger
To install on Arch Linux and Manjaro:
root@kali: ~# sudo pacman -S macchanger
Now we'be installed macchanger, let's continue.
Now to spoof your MAC, you do:
root@kali: ~# ifconfig eth0 down
root@kali: ~# macchanger -m 24:D2:77:E7:9C:A3 eth0
root@kali: ~# ifconfig eth0 up
And if you just want a random MAC address, use macchanger -r eth0 and it gives you a MAC address crested randomly.
Changing Permanently
There are sometimes when maybe you may want the change your MAC at every restart. You need to to to the file /etc/network/interface and the last line of the image do the same.
And then on every restart our MAC address will automatically be changed to 00:00:00:00:00:02
We use only essential cookies to ensure the proper functionality of our website. By continuing to use our site, you accept the use of these cookies.
©GIGOCYBERSPACE 2022 -