WEBVTT

00:00.920 --> 00:08.360
Now that we know how to write, or how to use a process to change or to use system command.

00:08.400 --> 00:14.480
Now it is time to go and write a simple program that change our Mac address.

00:14.520 --> 00:19.080
Okay, so here you see we use ifconfig okay.

00:19.080 --> 00:23.520
So here are beside this I can use the whole thing here okay.

00:24.520 --> 00:27.040
And let me here okay.

00:27.080 --> 00:31.200
In the terminal I clear this and use ifconfig.

00:31.800 --> 00:32.480
Hit enter.

00:33.960 --> 00:41.360
Now let me show you that the interface name is eth0 okay.

00:41.400 --> 00:44.000
And this is the Mac address okay.

00:44.000 --> 00:46.160
Either this is the Mac address right now.

00:46.880 --> 00:52.280
And let's go write a program to change this okay.

00:52.880 --> 01:02.560
So right here we have ifconfig and then a name of the interface which is eth0 okay.

01:03.040 --> 01:10.630
And then down right now I want to uh turn off this Uh, interface.

01:10.670 --> 01:11.430
Okay.

01:11.470 --> 01:14.350
And then I copy this line of code.

01:14.590 --> 01:15.390
Okay.

01:15.430 --> 01:19.430
Go to the next line and write eth0.

01:21.630 --> 01:23.070
And h w.

01:23.470 --> 01:23.950
Okay.

01:24.470 --> 01:27.830
Header and a new Mac address.

01:27.910 --> 01:35.550
That is going to be 0011 and 223344.

01:35.630 --> 01:37.350
And finally five five.

01:37.710 --> 01:42.030
So make sure that it is, uh, 12 character.

01:42.230 --> 01:43.790
Not more than that.

01:43.830 --> 01:44.230
Okay.

01:44.470 --> 01:50.830
Again use control C, control V and remove this this part.

01:51.070 --> 01:51.470
Okay.

01:53.830 --> 01:58.510
And the last thing is to turn it back on.

01:58.910 --> 02:00.550
Now save this.

02:00.590 --> 02:00.990
Okay.

02:01.230 --> 02:04.830
Right now you see that this is the Mac address for Kali Linux.

02:05.310 --> 02:06.910
Let's go and run this again.

02:11.670 --> 02:12.070
Okay.

02:12.110 --> 02:12.870
Mac changer.

02:13.230 --> 02:17.070
Let's use super user privilege.

02:17.110 --> 02:17.830
Hit enter.

02:18.510 --> 02:19.070
Kali.

02:19.070 --> 02:19.070
Probably.

02:20.470 --> 02:22.030
And nothing happened.

02:22.070 --> 02:24.990
That means it is maybe changed.

02:25.030 --> 02:27.510
Okay, now let's use ifconfig.

02:30.830 --> 02:31.270
Okay.

02:31.270 --> 02:39.550
Let's scroll this and see that if it is changed or not okay.

02:39.670 --> 02:42.470
You see we have this interface.

02:42.510 --> 02:45.550
It is either okay.

02:45.590 --> 02:50.670
And you see that the Mac address for this interface got changed.

02:50.710 --> 02:51.110
Okay.

02:51.510 --> 02:53.510
So perfect here.

02:53.510 --> 02:57.430
You just learn you saw how to change this okay.

02:57.470 --> 02:59.190
How to change the Mac address okay.

02:59.230 --> 03:04.510
You write your simple program that change the Mac address to anything you provide here.

03:04.510 --> 03:06.590
It is not the final part okay.

03:06.630 --> 03:07.990
We are going to learn a lot of things.

03:07.990 --> 03:11.350
We are going to improve this application okay.

03:11.390 --> 03:21.750
We're going to use a functions to separate this and ask the user to enter for example eth0 interface

03:21.750 --> 03:23.150
and also the Mac address.

03:23.430 --> 03:26.510
And we are going to do a lot of things in this package.

03:26.710 --> 03:28.830
So I'll see you in the next lecture.
