WEBVTT

00:00.840 --> 00:05.080
Have, you know, what is an irreplaceable thing and how does it work?

00:05.160 --> 00:07.520
Let's go create our first packet.

00:07.960 --> 00:14.000
So here I am going to use a module that we know how to use it.

00:14.040 --> 00:14.800
What is it.

00:15.000 --> 00:22.080
And because in the previous section I think we have been using it it is called Scapy.

00:22.080 --> 00:29.080
So I am going to import that scapy dot all as src.

00:31.120 --> 00:31.520
Okay.

00:31.960 --> 00:34.040
So here is how we are importing this.

00:34.360 --> 00:37.520
So let's go create a packet okay.

00:38.880 --> 00:43.720
We can create using ARP okay.

00:44.120 --> 00:47.880
Here we have some option that I'm going to show you okay.

00:48.400 --> 00:51.480
We you know how to use it how to give those options.

00:51.480 --> 00:54.720
But again I'm going to show you that here.

00:54.720 --> 01:02.540
So I'm going to go to the Python interpreter here I need to Import Sukhpal as SKP.

01:02.580 --> 01:06.540
Hit enter and here let's use that.

01:07.780 --> 01:09.060
So how can we use it?

01:10.140 --> 01:14.060
It is a list so skipped list here.

01:14.380 --> 01:20.260
Scapy dot arp and hit enter.

01:20.460 --> 01:22.980
So these are the thing we need to use.

01:23.300 --> 01:24.940
One of them is source.

01:26.060 --> 01:26.620
Destination.

01:26.660 --> 01:26.980
Hardware.

01:26.980 --> 01:27.540
Destination.

01:27.580 --> 01:28.300
Destination.

01:28.420 --> 01:29.060
Destination.

01:29.060 --> 01:31.100
And also hardware source.

01:31.140 --> 01:36.380
Okay so here and also we have one more option that is called OP.

01:36.580 --> 01:37.580
By default it is one.

01:37.580 --> 01:39.420
We need to change it to number two.

01:40.020 --> 01:44.820
So let's use OP is equal to two.

01:45.580 --> 01:50.340
And then we have PTSD.

01:50.700 --> 01:53.700
Okay P destination.

01:54.220 --> 01:58.920
And as you see right now my location is in network scanner.

01:58.960 --> 02:06.880
Okay, so I have I've been creating my program and now I'm going to use it.

02:06.920 --> 02:14.320
Okay let's use Python network scanner dash t ten 0 to 1.

02:16.560 --> 02:20.920
And I am going to use pseudo with this.

02:23.200 --> 02:23.480
Okay.

02:23.480 --> 02:25.280
Now you see we have IPS.

02:25.280 --> 02:26.840
And also we have the Mac address.

02:26.840 --> 02:32.640
And you know that this is the target which is Windows 7 and it is its Mac address.

02:32.640 --> 02:34.120
We are going to use that here.

02:34.640 --> 02:42.960
So P destination is going to be windows okay I will copy the uh IP for Windows 7.

02:47.200 --> 02:48.240
Just a moment.

02:50.320 --> 02:50.880
Copy.

02:53.040 --> 02:55.080
And paste it here okay.

02:56.020 --> 02:57.900
Use camera to separate them.

02:57.900 --> 03:03.540
And also we have hardware destination h w d is t.

03:04.020 --> 03:04.420
Okay.

03:04.820 --> 03:07.660
So I also have the hardware destination here.

03:08.060 --> 03:11.700
This is the Mac address of the Windows 7 machine.

03:11.980 --> 03:12.380
Okay.

03:12.420 --> 03:16.220
Copy this and then paste it here.

03:16.820 --> 03:23.540
Now you know that this packet is going to be sent from my computer, which is which is called Linux.

03:23.540 --> 03:28.500
And here I'm going to give that the source is out there.

03:28.500 --> 03:32.540
So I'm going to fold this windows and like that.

03:32.540 --> 03:39.140
So PSR c is equal to at the gateway.

03:39.140 --> 03:44.100
You know that this is the IP address for gateway or.

03:47.460 --> 03:48.100
Counter.

03:49.060 --> 03:50.220
Let me paste it here.

03:50.740 --> 03:55.450
Now you see that we just created Since our first packet.

03:55.490 --> 03:55.930
Okay.

03:59.450 --> 04:00.410
Okay.

04:00.450 --> 04:00.890
Here.

04:00.890 --> 04:04.090
Let's print some information from this packet.

04:04.130 --> 04:04.570
Okay.

04:04.970 --> 04:08.450
We have the packet dot show method.

04:09.090 --> 04:11.930
And also we have the summary of this.

04:11.970 --> 04:12.770
Okay.

04:12.810 --> 04:15.490
So let's use print packet.

04:17.570 --> 04:20.330
Dot summary.

04:21.330 --> 04:31.050
Now let me save this and come back right here in this terminal I'm going to use pseudo Python and we

04:31.090 --> 04:32.250
have ARP.

04:34.330 --> 04:36.330
spoofing.py.

04:36.810 --> 04:39.210
Now you see that we have IP.

04:39.250 --> 04:39.490
Okay.

04:39.530 --> 04:40.690
IP is version for this.

04:40.730 --> 04:41.010
Okay.

04:41.050 --> 04:43.410
OP is type.

04:43.450 --> 04:45.530
It's type is at okay.

04:45.850 --> 04:48.890
And you see we have the hardware destination.

04:48.930 --> 04:49.890
Hardware source.

04:50.490 --> 05:00.710
And you know that source is my, uh, my let's use ifconfig so you can see that Mac address.

05:00.710 --> 05:02.190
This is my Mac address okay.

05:02.670 --> 05:05.070
So source is my Mac address.

05:05.670 --> 05:10.110
And IP source is not my IP.

05:10.270 --> 05:12.110
You see my IP is 24.

05:12.430 --> 05:19.390
But this source is not belongs to this Mac address because it is belongs to router okay.

05:19.430 --> 05:26.110
And also this is the destination for hardware destination and also IP destination which is Windows 7.

05:26.110 --> 05:28.510
And also we have a little information here.

05:28.510 --> 05:37.590
And it is saying that this type is at and it says that this IP is at this Mac address which is a wrong

05:37.630 --> 05:38.510
information.

05:38.550 --> 05:39.350
Okay.

05:39.390 --> 05:47.270
So right now we are creating our we just created our first program that following the windows machine.

05:47.270 --> 05:50.630
So thanks for watching and I will see you in the next lecture.
