[go: up one dir, main page]

0% found this document useful (0 votes)
121 views6 pages

MODULE - 4 MAC Spoofing

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
121 views6 pages

MODULE - 4 MAC Spoofing

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

MODULE- 5: MAC Spoofing

Objective of the Module


Objective of this Module is to understand about MAC Spoofing, Process to change the MAC address by
generating random MAC address and by giving specific MAC address.

MAC Address Spoofing


MAC spoofing is a technique for changing a factory-assigned Media Access Control
(MAC) address of a network interface on a networked device.
The MAC address that is hard-coded on a network interface controller (NIC) cannot
be changed. However, many drivers allow the MAC address to be changed. Additionally,
there are tools which can make an operating system believe that the NIC has the MAC
address of a user's choosing. The process of masking a MAC address is known as MAC
spoofing. Essentially, MAC spoofing entails changing a computer's identity, for any reason,
and it is relatively easy.

The method used by switches to populate the MAC address table leads to a
vulnerability known as MAC spoofing. Spoofing attacks occur when one host masquerades
or poses as another to receive otherwise inaccessible data or to circumvent security
configurations.

MAC spoofing attacks occur when an attacker alters the MAC address of their host
to match another known MAC address of a target host. The attacking host then sends a
frame throughout the network with the newly configured MAC address. When the switch
receives the frame, it examines the source MAC address. The switch overwrites the current
MAC address table entry and assigns the MAC address to the new port. It then inadvertently
forwards frames destined for the target host to the attacking host.

NIELIT, Gorakhpur | MAC Spoofing Page 1


Hands on Lab for MAC Address Spoofing

Tool used for this Lab


The following tool would be used to perform this module
Macchanger
Macchanger is a tool used to spoof MAC address in Linux. In kali Linux and backtrack it is pre-
installed on other distribution user can install it manually Macchanger can spoof Mac address of
any interface like eth0, wlan0 etc.

Machine Details for this Lab


Power on the below Virtual Machine to be used in this lab.

S.No Computer Name IP Address Services/Tools Username Password


1 Kali Linux 10.0.0.11 Macchanger root 12345678

Hands on Lab
MAC Address Spoofing

In this Lab MAC Spoofing would be perform on LAN adapter (eth0) using two methods.
I. A random MAC address generated by Macchanger on Kali Linux.
II. Change to a Specific MAC address

Lab for MAC spoofing by generating random MAC Address.

The following steps would be used to check current MAC address on interface "eth0"
1. From the desktop of Kali (10.0.0.11) machine, open the terminal to check the present MAC
address of "interface eth0" (LAN interface) use following command.
macchanger -s eth0
where -s, used for show

NIELIT, Gorakhpur | MAC Spoofing Page 2


2. The output of above command shows the current/permanent MAC address of interface
"eth0"

The following steps would be used to change current MAC address of interface "eth0"
3. Before changing the MAC address ,turned off network interface “eth0”, by executing following
command.

4. Now change network card's hardware MAC address to some random hexadecimal numbers,
by giving following command.
macchanger -r eth0
-r: random hexadecimal numbers

5. Now MAC address has changed.

The following steps would be used to check current MAC address of interface "eth0"
6. To check changed MAC address bring network interface "eth0" up by following
command
ifconfig eth0 up

7. Check new MAC address by giving following command


ifconfig
Output is shown as following with new MAC address.

NIELIT, Gorakhpur | MAC Spoofing Page 3


NIELIT, Gorakhpur | MAC Spoofing Page 4
Lab for MAC Spoofing by Giving Specific MAC address

The following procedure on Kali Linux can be used to spoof MAC address by Giving
Specific MAC address.
8. Open terminal of Kali (10.0.0.11) machine, Make turned off network
interface eth0”before
changing the MAC address.

9. Execute the following command to assign a specific MAC Address (00:d0:70:00:20:69)


"macchanger -m 00:d0:70:00:20:69 eth0"

10. The output with changed MAC address is shown below.

11. Bring network interface "eth0" up and display new MAC address using following
command
" ifconfig eth0 up"

12. To check new MAC Address by "Ifconfig" following command

NIELIT, Gorakhpur | MAC Spoofing Page 5


LAB Outcome
The Macchanger tool has changed real MAC address of interface into a different MAC address.
Spoofing of MAC address usually needed for privacy and prevent tracking in the local network about our
hardware information (e.g: in public Wi-Fi network).

NIELIT, Gorakhpur | MAC Spoofing Page 6

You might also like