Monday, July 13, 2020

MAC Spoofing / MAC Changing(Chapter -4)

Introduction

We all are familiar with term MAC address, but often many of them are not aware of the purpose of the MAC address, and how a MAC address is really helpful. In this lesson I will discuss about What is a MAC address and How a Hacker change the MAC.

What is MAC address...?

A MAC address is called Media Access Control address. Its a unique address assigned to network interface cards off a system.It behaves as a network address with in a network segment. A network address is assigned by the manufactures and also known as physical address,MAC address is give in alphanumeric format .

Consider this as an example in a Local Area Network with 5 system connected through a switch.If one among the system wants to communicate with other one it should know the MAC address of that system and suppose the Mac address of the destination is 30-65-EC-6F-C4-58 as its a unique address the switch identify the port to which the system with the MAC address is connected and establish a connection between them. But my topic was MAC Spoofing/ MAC changing for that you have to understand how MAC address work.

I am using Kali Linux OS.This action can me performed on Parrot OS too. To change the MAC address you have to install this OS.it if you don't know then you can follow this link to install kali linux.

We are using a tool named Mac changer for changing the MAC address which is preinstalled in the kali linux that's why i prefer this for this session and upcoming sessions.

Step 1: Open Terminal


It will open up this black window

Terminal opened

Step 2: Type Command macchanger

macchanger runs

Step 3: It will display a message

GNU MAC Changer

Usage: macchanger [options] device

Try `macchanger --help' for more options.

If we type on next line macchanger --help or macchanger -h it will display all available options that can performed on macchanger

Step 4: Observe the options displayed

macchanger -h help window

the first option is help as we tried it now, second one shows the version of the current running macchanger tool. What we going to use is macchanger -s, macchanger -p, macchanger -r, macchanger -m

Step 5: Listen carefully

Syntax of macchanger: macchanger [options] [intefacename] or macchanger [intefacename] [options] 1. type ifconfig on a new terminal it will show all the interface and there mac adderss. 2.If you are using a Laptop you will see to interface there eth0 (ethernet 0) and wlan0 (wireless lan0 or wifi) but to a normal desktop it shows only eth0.

                                                                     ifconfig

here we can see both eth0 and wlan0 and they have different MAC address now switch back to macchanger terminal


 Type macchanger -s eth0 (for ethernert) macchanger -s wlan0 (wifi ) it will show the current MAC address.

Change MAC address using macchanger -r eth0 for ethernet and macchanger -r wlan0

See macchanger -r wlan0 error and read

macchanger -r eth0 have changed my MAC to a new one it will randomly change the MAC. But when I have tied macchanger -r wlan0 displayed an error to avoid that you should switch off wifi connection.During eth0 changing disconnect ethernet to avoid error.

macchnager -mac=xxxxxxxxxxxxx MAC address will maulay change the MAC to the specifed one

MAC assign manually

macchanger - p eth0 will reset MAC address to permanent eth0 macand macchanger -p wlan0 will reset MAC address to permanent wifi mac.

Permanent MAC

NB:This section is for the study purpose only if you misuse your knowledge you will have to face the consequence.

0 comments:

Post a Comment