WEBVTT

00:00.880 --> 00:04.320
Hi friends, welcome to changing Mac address section.

00:04.320 --> 00:11.440
In this section we are going to learn how we can change Mac address for a device or a computer.

00:11.480 --> 00:12.120
Okay.

00:12.160 --> 00:16.360
And then we will learn how to create our program okay.

00:16.400 --> 00:21.960
Python program that these program changes Mac address.

00:21.960 --> 00:32.840
So before we start we need to know what is a mac address okay a mac address is a it is a physical address

00:32.840 --> 00:34.000
okay.

00:34.080 --> 00:37.560
Mac address stands for Media Access Control.

00:38.040 --> 00:46.400
And it is a physical, permanent and completely unique for each devices that is assigned by its manufacturer.

00:46.400 --> 00:46.800
Okay.

00:47.000 --> 00:51.920
For example, this computer that I have right now and I'm using it, it has a mac address.

00:51.920 --> 00:55.480
It has something that is completely unique in this world.

00:55.920 --> 00:58.200
No other devices has that kind of Mac address.

00:58.240 --> 00:59.240
Okay.

00:59.240 --> 01:00.000
And.

01:02.400 --> 01:04.640
Uh, what is it used for?

01:04.760 --> 01:05.280
okay.

01:05.320 --> 01:09.320
It is used for transferring the packets from one device to another.

01:09.320 --> 01:12.120
Devices from one computer to another computer.

01:12.160 --> 01:12.600
Okay.

01:13.400 --> 01:16.280
While packets, you may ask, what is packet?

01:16.320 --> 01:16.640
Okay.

01:16.680 --> 01:22.760
The packet is the data that we are sending from one computer to another computer.

01:23.360 --> 01:29.200
So this packet that we send, it has a source Mac address and a destination Mac address.

01:29.440 --> 01:29.840
Okay.

01:30.200 --> 01:33.600
These both are unique for each devices.

01:33.600 --> 01:37.160
And this both are completely unique.

01:37.160 --> 01:44.360
And it is transferring the data or those packets that is sent to network.

01:46.000 --> 01:48.680
And why should we change it okay.

01:48.720 --> 01:52.200
Because in this section we are going to learn change it to change it.

01:52.200 --> 01:54.800
And why should we change it.

01:54.920 --> 02:02.240
Is it really necessary to change it in hacking world or in hacking area?

02:02.560 --> 02:07.880
Yes, of course it is necessary because it increase being anonymity.

02:07.920 --> 02:08.280
Okay.

02:08.320 --> 02:16.320
Being anonymous, and it is used in a lot of a lot of places.

02:16.360 --> 02:16.800
Okay.

02:17.360 --> 02:20.920
That we will be discussing them later on.

02:20.920 --> 02:23.240
And here I'm going to just name them.

02:23.280 --> 02:23.960
Okay.

02:24.000 --> 02:26.040
For example there are some kind of filter.

02:26.080 --> 02:26.360
Okay.

02:26.400 --> 02:34.400
Mac address filtering that it is they are telling for example on a Wi-Fi network, the administrator

02:34.440 --> 02:42.680
telling that only the devices could connect to this network that has a specific Mac address.

02:42.720 --> 02:46.200
So if you change your Mac address to their Mac address okay.

02:46.960 --> 02:50.960
So you will be able to change to connect to that network too.

02:51.000 --> 02:56.440
So we can bypass the Mac address filtering by changing the Mac address.

02:58.800 --> 03:02.120
And it could hide your identity.

03:02.320 --> 03:02.720
Okay.

03:03.480 --> 03:13.360
So also let's go and see how we can change it from tools that is already into Kali Linux.

03:13.400 --> 03:13.800
Okay.

03:14.640 --> 03:19.440
And then we will be learning how to create our own tools to change it.

03:19.640 --> 03:27.360
So let me show you the Mac address first in Kali Linux, if you write ifconfig and hit enter here you

03:27.360 --> 03:28.600
have two things okay.

03:28.640 --> 03:30.200
One of them is eth0.

03:30.200 --> 03:32.160
And then we have low.

03:32.200 --> 03:34.000
Now, right now forget about this okay.

03:34.040 --> 03:36.800
It is a network that is created by Kali Linux.

03:36.800 --> 03:42.960
And this one it is a wired network that is created is virtual network okay.

03:42.960 --> 03:46.760
Right now that is created by virtual machine or VirtualBox.

03:47.640 --> 03:54.280
And right here you see that we have an IP okay.

03:54.320 --> 03:55.440
That is here.

03:55.480 --> 03:58.480
Each network needs to have an IP okay.

03:58.880 --> 04:05.280
This belongs to an interface which which its name is eth0 okay.

04:05.320 --> 04:11.360
And it has a mac address which is either okay and this is its Mac address okay.

04:11.400 --> 04:19.310
This Mac address needs to be 12 character all the time And right now you see, this is the Mac address

04:19.310 --> 04:25.550
for this Linux computer that VirtualBox provided for this computer.

04:25.590 --> 04:25.990
Okay.

04:26.990 --> 04:33.110
And if you're trying to find it on windows you need to write IP config.

04:33.150 --> 04:33.750
Okay.

04:33.790 --> 04:34.830
On windows.

04:35.070 --> 04:39.190
And now if I hit enter it is not going to understand it because it's a command for windows.

04:39.190 --> 04:41.030
And I'm using Linux.

04:41.310 --> 04:42.630
So how can we change it.

04:42.670 --> 04:47.670
First we need to turn off this interface which is zero.

04:47.710 --> 04:51.710
No problem if you're using eth0 or LAN.

04:51.750 --> 04:52.190
Okay.

04:53.190 --> 05:00.750
So let's use ifconfig eth0 which is the name of the interface.

05:00.910 --> 05:07.270
If you want to use other interface then you can use the name of that interface okay.

05:07.310 --> 05:09.590
So let's use down and hit enter.

05:10.030 --> 05:13.470
And it is saying that operation not permitted.

05:13.510 --> 05:13.790
Okay.

05:13.830 --> 05:14.030
Why.

05:14.070 --> 05:16.190
Because I'm not a super user.

05:16.230 --> 05:20.070
Let's use sudo ifconfig.

05:20.070 --> 05:20.150
fake.

05:22.510 --> 05:24.190
It a zero down.

05:24.190 --> 05:25.070
Hit enter.

05:25.110 --> 05:28.030
Provide the password.

05:28.150 --> 05:29.510
Now we have no error.

05:29.510 --> 05:33.470
That means now the eth0 is down.

05:33.470 --> 05:36.270
And you see that notification right here.

05:37.630 --> 05:42.230
And now if you want to change it, you need to use ifconfig.

05:42.550 --> 05:45.790
Okay then name of the interface.

05:45.790 --> 05:56.390
And then write h w then ether that is here okay either and then provide a new Mac address.

05:56.430 --> 05:56.670
Okay.

05:56.710 --> 06:02.350
So let's go with zero zero okay 001.

06:05.510 --> 06:10.230
One one and 223344.

06:10.350 --> 06:12.110
And finally five five.

06:12.150 --> 06:14.430
Make sure that it is 12 character.

06:14.470 --> 06:14.870
Okay.

06:15.150 --> 06:16.790
Now I'm going to hit enter.

06:17.150 --> 06:21.230
And again it's going to be sudo.

06:21.270 --> 06:22.590
And now hit enter.

06:22.870 --> 06:25.150
Now I think it is going to going to be changed.

06:25.190 --> 06:31.550
And there is one more thing you need to do, and that is to turn on the this interface again.

06:31.870 --> 06:35.150
So again we're going to use sudo ifconfig.

06:38.430 --> 06:38.870
Okay.

06:39.310 --> 06:42.430
And it is zero app.

06:43.310 --> 06:43.710
Okay.

06:43.750 --> 06:44.670
Now it is done.

06:44.670 --> 06:47.030
And you see that the network is up now.

06:47.390 --> 06:54.630
Now if I use ifconfig and hit enter this time you see that we have this Mac address.

06:55.070 --> 06:55.310
Why.

06:55.470 --> 06:57.430
Because I changed it.

06:57.470 --> 06:58.350
Okay.

06:58.390 --> 07:03.070
And right here, up here, if I show you you see that we had something else.

07:03.070 --> 07:05.510
And now we have this one.

07:05.510 --> 07:06.230
Okay.

07:06.270 --> 07:11.710
So it is how you can change it using a tool that is already provided in Kali Linux.

07:12.310 --> 07:21.310
And in this section we are going to create our own program to change the Mac address for device using

07:21.310 --> 07:24.030
Python programming language.

07:24.230 --> 07:25.830
So let's go and see that.

07:25.870 --> 07:26.670
Okay.

07:26.710 --> 07:27.910
See you in the next video.
