WEBVTT

00:01.280 --> 00:09.280
Okay, now that it is almost completed, here we the first section we have two parts.

00:09.320 --> 00:15.840
First is creating an ARP request and the second one is set the destination to the broadcast.

00:16.240 --> 00:21.440
And that is because we need to send a package to all clients.

00:21.480 --> 00:22.280
Okay.

00:22.280 --> 00:28.280
So we can do that by using ETH air ether.

00:28.320 --> 00:28.600
Okay.

00:28.640 --> 00:35.480
Here the first part I have done is done for IP.

00:35.600 --> 00:39.600
Now let's create another variable.

00:39.720 --> 00:41.520
Let's name it broadcast.

00:41.560 --> 00:41.960
Okay.

00:43.760 --> 00:44.840
Broadcast.

00:45.080 --> 00:48.800
And it is equal to Scapy.

00:51.920 --> 00:55.120
Dot header.

00:55.480 --> 00:55.880
Okay.

00:56.840 --> 00:57.680
Now here.

01:00.100 --> 01:02.540
Uh, let's remove this.

01:02.540 --> 01:04.740
Actually, we don't need this right now.

01:04.740 --> 01:10.100
Here and here I'm going to use skip list.

01:11.660 --> 01:20.220
And we can use that skip dot either to see details escape dot.

01:22.500 --> 01:23.940
Either method.

01:26.140 --> 01:30.900
Now let's run this and see what is going to happen.

01:36.020 --> 01:36.820
Okay.

01:36.820 --> 01:40.060
Now you see we have all the fields that we need okay.

01:40.100 --> 01:41.380
First one is destination.

01:41.380 --> 01:44.060
We need to set the destination to that broadcast.

01:44.500 --> 01:45.820
This is the broadcast okay.

01:46.100 --> 01:47.860
Six ifs.

01:47.900 --> 01:51.060
This is the broadcast and this is the source Mac address.

01:51.060 --> 01:53.500
And, uh, that's it.

01:53.540 --> 01:53.940
Okay.

01:55.100 --> 01:55.380
So.

01:57.550 --> 02:00.870
And now we need to set that to.

02:04.350 --> 02:07.070
Set the destination to this one.

02:07.110 --> 02:07.510
Okay.

02:08.070 --> 02:11.070
So we have the DST destination.

02:11.630 --> 02:14.230
We can set that in two ways.

02:14.270 --> 02:14.670
Okay.

02:16.390 --> 02:18.830
Uh, one of them is right here.

02:18.870 --> 02:19.350
Okay.

02:19.390 --> 02:20.590
Let's use that.

02:21.030 --> 02:23.790
DST is equal to here.

02:26.630 --> 02:30.230
23456.

02:30.670 --> 02:30.990
Okay.

02:31.230 --> 02:36.230
Now, instead of having ls here, let's print the summary of the broadcast.

02:36.270 --> 02:37.070
Okay.

02:37.110 --> 02:38.790
So let's use print.

02:38.790 --> 02:42.790
And then we have broadcast dot summary.

02:45.750 --> 02:49.310
Also we can use show as well.

02:50.310 --> 02:52.070
I will show that to you.

02:52.550 --> 02:59.250
Now you see that the summary is telling me that the destination is this one.

02:59.250 --> 02:59.610
Okay.

03:00.530 --> 03:01.970
And here.

03:02.090 --> 03:02.330
Now.

03:04.370 --> 03:09.210
We can, uh.

03:09.250 --> 03:11.610
Now we can have both of this.

03:11.650 --> 03:12.010
Okay.

03:14.090 --> 03:19.010
Uh, LP request and broadcast both in one place.

03:19.450 --> 03:19.850
Okay.

03:20.090 --> 03:21.930
So what do I mean by that?

03:21.930 --> 03:27.530
Is the LP request, uh, broadcast?

03:32.330 --> 03:35.330
Broadcast is going to be equal to.

03:35.370 --> 03:37.250
I'm going to have both of these.

03:37.290 --> 03:37.570
Okay.

03:37.610 --> 03:40.650
LP request and broadcast in one place.

03:40.650 --> 03:43.330
So this is allowing us to do that.

03:43.330 --> 03:53.770
So let's use broadcast then by using this slash LP request we are able to do this now instead of just

03:53.860 --> 03:54.660
broadcast.

03:54.660 --> 04:01.300
I'm going to use ERP or ERP broadcast request broadcast.

04:01.340 --> 04:02.100
Okay.

04:02.100 --> 04:04.580
Now let's see what do we have.

04:08.420 --> 04:08.820
Okay.

04:09.860 --> 04:13.460
Now as you see we have two things here.

04:13.460 --> 04:17.620
One of them is either and we have ERP both in one place.

04:17.660 --> 04:18.580
Okay.

04:18.620 --> 04:22.940
And this is telling that this is the destination Mac address.

04:22.940 --> 04:26.100
That means which is the broadcast Mac address.

04:26.140 --> 04:26.980
Okay.

04:27.020 --> 04:32.220
And this one is PTSD or, uh, this is the IP.

04:33.300 --> 04:33.700
Okay.

04:34.660 --> 04:38.980
So we improved this in a bit.

04:38.980 --> 04:41.140
Uh, more or better.

04:41.180 --> 04:44.820
Now also if you want to see more detail.

04:44.860 --> 04:45.260
Okay.

04:45.300 --> 04:51.620
More details here you see very simple information you may not understand.

04:51.660 --> 04:51.940
Okay.

04:51.980 --> 04:52.840
What is that?

04:53.240 --> 04:59.160
Now here I am going to use another function that is called show.

04:59.640 --> 05:02.200
And it will give me a lot of information here.

05:02.880 --> 05:10.840
Let's use ARP request broadcast dot show method and let's see what do we have.

05:12.760 --> 05:13.200
Okay.

05:13.200 --> 05:16.520
Now it is giving me more details.

05:16.520 --> 05:19.240
And as you see the destination is the broadcast.

05:19.280 --> 05:21.920
This is the source which is Mac address for my computer.

05:22.800 --> 05:28.680
And you see we have IP, we have OP who has okay.

05:28.720 --> 05:29.480
And.

05:31.800 --> 05:32.120
Okay.

05:32.160 --> 05:35.800
Everything we need is down here now.

05:35.800 --> 05:45.400
And also for these broadcast and AARP also we can use this show method.

05:45.440 --> 05:45.840
Okay.

05:46.480 --> 05:48.880
Let me remove this print from here.

05:51.890 --> 05:55.010
Here if I use broadcast dot show.

05:57.890 --> 05:58.410
Method.

05:58.410 --> 06:04.810
And also then up here are request dot show.

06:04.810 --> 06:06.290
And if I save this.

06:06.290 --> 06:12.690
Now let's compare this both and see what is going to happen.

06:12.690 --> 06:17.810
So the first one it is for ARP request okay.

06:17.850 --> 06:21.010
The second one which is this one for Ethernet okay.

06:21.050 --> 06:22.690
It is for broadcast.

06:22.690 --> 06:30.450
As you see we have the destination which is this one and source.

06:30.490 --> 06:37.890
And here we have combination of both okay ARP both of them down here.

06:38.290 --> 06:39.490
Very good.

06:39.490 --> 06:42.890
Now that we have these okay.

06:42.930 --> 06:49.090
Let's go and see how we can improve this uh more and better.
