WEBVTT

00:00.920 --> 00:05.760
Okay, now the program this part creating a packet is completed.

00:06.280 --> 00:12.280
And this two method is showing the details about packet that we are trying to send.

00:12.840 --> 00:19.880
Now instead of just showing the details about packet it is time to send the packet.

00:19.920 --> 00:24.760
Okay so we need to use the send method.

00:24.800 --> 00:25.120
Okay.

00:25.160 --> 00:30.080
We have Scapy that send and give the packet.

00:30.120 --> 00:30.640
Okay.

00:32.040 --> 00:34.680
Now this will send the packet.

00:35.000 --> 00:35.400
Okay.

00:35.960 --> 00:42.920
So let's go to Document Python project for ethical hacking.

00:43.360 --> 00:44.920
And then we have.

00:46.960 --> 00:51.920
Uh network scanner I think or ARP spoofing.

00:51.960 --> 00:52.160
Okay.

00:52.160 --> 00:53.360
It's ARP spoofing.

00:56.160 --> 00:56.600
Okay.

00:57.160 --> 01:02.680
Pseudo ARP spoofing ARP spoof.

01:04.120 --> 01:04.480
Okay.

01:04.560 --> 01:08.840
Sudo python setup.py.

01:08.880 --> 01:09.560
Hit enter.

01:09.600 --> 01:11.120
Provide the best one.

01:12.880 --> 01:16.680
And you see now that one packet sent.

01:16.720 --> 01:17.120
Okay.

01:17.600 --> 01:21.480
So now if I come back here.

01:23.520 --> 01:31.120
And go to cmd arp dash a.

01:31.160 --> 01:41.040
Now you see that instead of having a mac address for router, I only have Mac address of my computer

01:41.040 --> 01:41.800
for router.

01:41.840 --> 01:48.120
Okay so it is not what it really is okay.

01:48.480 --> 01:51.080
There is some fake information.

01:51.120 --> 01:51.840
Okay.

01:51.880 --> 01:52.600
That is good.

01:52.640 --> 01:57.360
Now there is another thing that we need to do.

01:57.400 --> 01:57.880
Okay.

02:00.200 --> 02:08.480
And that is to actually this one is only doing a one part of the job.

02:09.570 --> 02:10.690
How?

02:10.690 --> 02:13.770
Right now we're just sending the packet to this one.

02:14.410 --> 02:15.650
To this one to.

02:15.690 --> 02:16.690
Computer.

02:16.690 --> 02:20.170
But not for the router.

02:20.410 --> 02:26.330
So the thing we need to do is create a method or a function to get the Mac address.

02:26.370 --> 02:26.810
Okay.

02:26.850 --> 02:27.690
Mac address.

02:28.450 --> 02:40.530
And also to create another function for doing this, uh, task here in Mac changer I think.

02:42.330 --> 02:43.330
Let's see.

02:44.930 --> 02:47.170
We had a method by the name of scan.

02:48.330 --> 02:49.050
Get current.

02:49.050 --> 02:49.490
Mac.

02:51.290 --> 02:53.490
Let me go to here.

02:54.650 --> 02:55.210
Okay.

02:55.210 --> 02:57.610
We have a method called scan here.

02:57.890 --> 03:00.610
We are going to use this method.

03:00.650 --> 03:00.850
Okay.

03:00.890 --> 03:06.570
I will copy this method and I will just paste it here.

03:08.010 --> 03:14.970
Now I will change this to something like let's use git underscore mac.

03:15.130 --> 03:15.530
Okay.

03:15.890 --> 03:17.850
So right now it is asking for IP.

03:17.890 --> 03:19.210
That is okay here.

03:20.210 --> 03:23.170
And the ARP request CPLP.

03:23.610 --> 03:24.330
It is.

03:24.450 --> 03:25.610
Let this be like this.

03:25.610 --> 03:28.010
And also this three line.

03:28.050 --> 03:30.970
Let them be the way that is okay.

03:31.530 --> 03:40.730
Now here instead of having client list blah blah blah we need to remove this all from here.

03:43.530 --> 03:48.330
And here I need to have.

03:48.330 --> 03:48.730
Okay.

03:50.530 --> 03:52.050
We have the answer here.

03:52.090 --> 03:52.530
Okay.

03:53.210 --> 03:56.250
Now we just need to return something from here.

03:56.290 --> 03:56.650
Okay.

03:56.650 --> 04:01.490
Let's use return answer, which is a list okay.

04:01.970 --> 04:07.650
So I want to return this answer the first one.

04:07.650 --> 04:08.090
Okay.

04:10.930 --> 04:11.530
Dot.

04:12.010 --> 04:19.370
Um h w is AAC audio Hardware source or a mac.

04:20.610 --> 04:23.170
Mac address for the router.

04:23.210 --> 04:23.450
Okay.

04:23.490 --> 04:25.170
So this will return that.

04:25.690 --> 04:28.650
And also I need to create another function.

04:28.690 --> 04:28.890
Okay.

04:28.930 --> 04:32.810
This is the function that we are just going to be using them.

04:32.850 --> 04:33.050
Okay.

04:33.050 --> 04:34.530
We already created this.

04:34.530 --> 04:37.130
So you know how to create that method.

04:37.170 --> 04:37.330
Okay.

04:37.330 --> 04:38.450
And use it here.

04:38.450 --> 04:39.730
We just use it.

04:40.610 --> 04:45.090
And here I need to create another method called spoof.

04:45.130 --> 04:45.530
Okay.

04:47.530 --> 04:51.570
Uh here we need to give the target IP and also the spoof IP.

04:51.610 --> 04:52.010
Okay.

04:52.330 --> 05:05.850
So let's use target underscore IP a variable or a argument an argument and also spoof IP okay here.

05:10.050 --> 05:10.850
Right here.

05:10.930 --> 05:14.570
Let's um first we need to get the Mac address.

05:14.570 --> 05:18.050
So I'm going to use target Mac.

05:18.090 --> 05:24.930
It is equal to get Mac and let's provide the IP.

05:24.970 --> 05:27.330
The IP is going to be the target IP.

05:27.370 --> 05:27.810
Okay.

05:29.370 --> 05:38.490
We give the target IP and we get its Mac address, and we save or restore it into the target Mac address.

05:38.970 --> 05:40.810
So also we have.

05:43.410 --> 05:43.690
Okay.

05:43.730 --> 05:45.890
We do need to create anything else.

05:45.890 --> 05:49.970
We just use that here.

05:50.290 --> 05:50.690
Okay.

05:52.650 --> 05:54.210
Now we have this.

05:54.250 --> 05:55.290
Okay.

05:55.330 --> 06:02.330
And here I can call the method which is called get um.

06:05.090 --> 06:06.130
Get Mac here.

06:06.130 --> 06:09.850
We need to provide the IP for what we want okay.

06:09.890 --> 06:12.130
0 to 1.

06:12.130 --> 06:15.210
This is the IP address for our source.

06:15.370 --> 06:16.170
Okay.

06:16.210 --> 06:21.610
And also as you see we have a lot of things here that is not that is provided okay.

06:21.650 --> 06:25.260
Inside The function.

06:25.780 --> 06:29.220
So we need to get them from outside.

06:29.220 --> 06:31.580
As you see we have the target IP here.

06:32.620 --> 06:33.020
Okay.

06:33.380 --> 06:36.660
So we can use it here instead of providing them here.

06:37.500 --> 06:39.780
So let's use target IP.

06:39.820 --> 06:40.460
Okay.

06:40.500 --> 06:44.700
And also we have this one which is the target Mac.

06:44.740 --> 06:47.460
As you see we have the target Mac here.

06:47.940 --> 06:50.860
So now I can use that here.

06:54.700 --> 06:59.540
And also we have the source IP address or spoof IP.

06:59.980 --> 07:02.500
Now I can use that here.

07:03.380 --> 07:04.020
And.

07:08.140 --> 07:09.620
So IP.

07:09.660 --> 07:10.420
Okay.

07:10.420 --> 07:18.700
Now the program is almost completed and we yet we haven't used the spoof function.

07:18.740 --> 07:19.220
Okay.

07:20.380 --> 07:22.580
So almost completed.

07:22.740 --> 07:23.580
So let's go.

07:23.580 --> 07:28.300
And in the next lecture complete this program.
