WEBVTT

00:01.520 --> 00:04.840
Okay, now let's complete this program.

00:04.880 --> 00:05.080
Okay.

00:05.080 --> 00:07.120
Let's use the spool function.

00:07.160 --> 00:07.520
Okay.

00:08.000 --> 00:10.800
So let's call it spool function here.

00:11.040 --> 00:15.440
First we need to provide the target IP and then the spool IP.

00:15.440 --> 00:19.320
So the target is going to be our Windows 7.

00:19.360 --> 00:19.960
Okay.

00:20.000 --> 00:25.640
It is ten 0 to 15 I think.

00:26.160 --> 00:31.480
And also we have the router which is ten 021.

00:31.680 --> 00:32.080
Okay.

00:32.360 --> 00:37.480
Now if I execute this and let's see what do we have here.

00:39.240 --> 00:45.840
And you see right now it's only doing the job which is uh sending only one packet.

00:45.840 --> 00:51.160
And that is uh, sending that for Windows 7 and not for router.

00:51.240 --> 00:59.640
So here if I use the ARP dash A again, you see that it is for, uh, it is changing the Mac address.

00:59.680 --> 01:00.160
Okay.

01:01.080 --> 01:02.480
If I try it again.

01:03.720 --> 01:03.920
Okay.

01:03.960 --> 01:04.800
It's the same.

01:04.840 --> 01:07.500
And now if I, uh, go back.

01:07.620 --> 01:07.900
Okay.

01:07.900 --> 01:09.420
It's doing only one time.

01:09.580 --> 01:17.020
And if in some time, for example, ten second passed, or I browse something on internet, and then

01:17.020 --> 01:17.180
I.

01:17.220 --> 01:18.140
If I come back.

01:18.420 --> 01:21.060
So it is again the connection is lost.

01:21.060 --> 01:24.620
And I sent only one packet.

01:24.660 --> 01:25.220
Okay.

01:26.180 --> 01:31.140
So we need to do this continuously and send a lot of packets.

01:31.140 --> 01:35.820
And not just for this one since this for both of them.

01:35.860 --> 01:36.300
Okay.

01:36.740 --> 01:39.660
So now first the target is Windows 7.

01:39.660 --> 01:42.100
Now I'm going to call this again.

01:42.100 --> 01:45.020
And this time the target is going to be the router.

01:45.260 --> 01:47.980
So let's use the spoof again.

01:47.980 --> 01:51.860
This time is going to be ten 0 to 1.

01:53.060 --> 01:55.460
And the source is going to be.

01:58.740 --> 02:03.780
Ten zero 215 which is Windows 7.

02:04.020 --> 02:04.860
Now if I.

02:06.900 --> 02:12.110
Uh, let's come back to Windows 7 once again and let's See?

02:12.150 --> 02:13.470
Still the same.

02:13.510 --> 02:17.670
Okay, kids, let's go to internet.

02:17.790 --> 02:22.830
And if you have internet connection, looks like we have something.

02:22.870 --> 02:23.470
Okay.

02:23.510 --> 02:32.430
For example, I am going to go to Bing.com and doing something, browsing stuff like that here.

02:35.790 --> 02:38.910
And you see that it is changed back.

02:39.030 --> 02:41.390
The Mac address is changed to what it was.

02:41.430 --> 02:41.830
Okay.

02:42.190 --> 02:45.030
Now I want to execute the program.

02:45.430 --> 02:45.630
Okay.

02:45.670 --> 02:51.390
This time it sends two packets one packet for Windows 7 and also one packet for router.

02:51.830 --> 03:05.030
Again, if I come back to Windows 7 and this time again if I check it, uh, it is not changed.

03:05.030 --> 03:05.310
Okay.

03:05.350 --> 03:06.150
No problem.

03:12.270 --> 03:14.270
Let me use CLS again.

03:21.090 --> 03:26.330
Sending two packets, one for router and one for Windows 7.

03:26.770 --> 03:30.130
So now you see that it has changed.

03:30.930 --> 03:32.050
The IP address is changed.

03:32.090 --> 03:38.810
Now if I again browse something on internet, it will be changed back to the real Mac address.

03:39.130 --> 03:40.610
So it is not what we want.

03:40.650 --> 03:40.890
Okay.

03:40.890 --> 03:45.610
The thing we want is to be continued.

03:45.650 --> 03:46.050
Okay.

03:46.090 --> 03:52.530
For example, do this task for at least 10s or at least until we want.

03:52.570 --> 03:54.290
Okay.

03:54.330 --> 04:02.890
Uh, so if you want to do that to if you want this program to be ran or to be executed for a while,

04:02.890 --> 04:07.410
you need to use a for loop or while loop or something like that.

04:07.450 --> 04:14.570
So here I'm going to use while and give a condition, which is true while it is true.

04:14.610 --> 04:18.010
Uh, I need this to be executed.

04:18.050 --> 04:18.890
Okay.

04:18.930 --> 04:26.820
And also I want this to be, uh, for example, pause for at least two seconds and then send another

04:26.820 --> 04:27.420
packet.

04:27.660 --> 04:33.980
So to do that I need to use time dot sleep at least two seconds.

04:34.180 --> 04:38.100
So here I haven't imported the time I need to do that.

04:38.700 --> 04:40.380
Import pi.

04:40.420 --> 04:42.500
Okay, now save this.

04:42.500 --> 04:43.860
Let's go back here.

04:47.180 --> 04:50.860
And now first it sends two packet.

04:50.900 --> 04:51.340
Okay.

04:52.100 --> 04:55.660
Again after two seconds it sends two other packet to other packet.

04:56.420 --> 04:59.940
It is good, but not very efficient.

04:59.980 --> 05:00.420
Okay.

05:02.340 --> 05:07.220
Uh, we need to change this program, that we will do that in the future.

05:07.460 --> 05:09.140
Now let's go back here.

05:09.300 --> 05:14.980
And now, if I browse this again, you see that it is not changed.

05:15.020 --> 05:25.220
I can I try to go to bing.com or google.com.

05:25.220 --> 05:29.280
If again I try to See it has not changed.

05:29.320 --> 05:29.680
Okay.

05:30.240 --> 05:34.240
And also you see that I cannot access the web page.

05:34.240 --> 05:41.640
That is because I need to enable the port forwarding on Kali Linux once again.

05:41.680 --> 05:42.080
Okay.

05:43.040 --> 05:48.360
You know how to enable the port forwarding on your machine.

05:48.840 --> 05:49.760
Okay.

05:49.800 --> 05:53.040
Echo one to something like that.

05:53.040 --> 05:53.680
Let me.

05:56.720 --> 06:00.080
Uh, split this horizontally here.

06:00.480 --> 06:04.120
You just need to use sudo is you.

06:06.000 --> 06:09.520
Let's use echo IP forwarding.

06:10.480 --> 06:11.720
Now it is enabled.

06:11.720 --> 06:17.400
And now if I come here and try to access this, you see that it is accessed.

06:17.400 --> 06:24.640
And here if I try to access this one, you see that it is not changed back to what it was.

06:25.320 --> 06:30.640
And you see that still it is sending two, two packets.

06:30.680 --> 06:31.880
Let's cancel this.

06:32.240 --> 06:34.370
And that is it.

06:34.410 --> 06:40.410
If I come back to Windows 7 here, you see, it is still what it was.

06:40.650 --> 06:50.170
And if I can try to access the internet, for example, I want to see some picture, animal picture

06:50.170 --> 06:50.930
or anything.

06:54.570 --> 06:55.170
Okay.

06:55.170 --> 06:56.290
There is still that.

06:56.450 --> 06:57.530
That is what it was.

07:01.050 --> 07:03.090
And it is how it works.

07:03.130 --> 07:03.530
Okay.

07:04.170 --> 07:09.490
As you see, the program is not very efficient because it is showing me send one packets and one packet

07:09.530 --> 07:11.370
a lot in one terminal.

07:11.370 --> 07:13.770
So I need to fix this.

07:13.810 --> 07:18.050
I need to update this in a way that it only updates the number.

07:18.050 --> 07:23.890
For example, send one packet, send two packets and three packets, send 100 packets like that.

07:23.890 --> 07:30.410
And also after my task is finished, I need to have an option to cancel this.

07:30.450 --> 07:30.890
Okay.

07:33.010 --> 07:34.770
And that is it.

07:34.810 --> 07:35.090
Okay.

07:35.130 --> 07:38.970
Let's go and see how we can improve this program.
