WEBVTT

00:02.440 --> 00:04.200
Okay, let's come back here.

00:04.280 --> 00:08.560
You see, we are printing all the packets that has HTTP request.

00:08.560 --> 00:15.600
And you see, we have seen a lot of information here, a lot of things that is not readable.

00:15.600 --> 00:16.640
Okay.

00:16.640 --> 00:22.480
Here we have another method okay that we can use with this packet that is called show.

00:23.400 --> 00:26.760
Now if I use this one and come back here.

00:29.720 --> 00:31.480
Let me use Ctrl C here.

00:33.240 --> 00:34.360
Hit enter again.

00:37.360 --> 00:44.640
Now let's go back to this our website called oneweb.com.

00:44.640 --> 00:48.240
It is for testing vulnerability okay.

00:48.280 --> 00:51.680
Your vulnerability programs and a lot of things.

00:51.720 --> 00:52.600
Let's come back here.

00:52.640 --> 00:57.800
Now you see very readable data okay.

00:57.840 --> 00:59.480
Let me use Ctrl C here.

01:01.240 --> 01:03.280
Let me show you a lot of thing here okay.

01:04.420 --> 01:09.780
Now this show method show you each layer.

01:09.820 --> 01:10.140
Okay.

01:10.140 --> 01:16.020
You see we have Ethernet layer here that this has destination and also source.

01:16.060 --> 01:22.460
You see the destination is the Mac address for router and source is my Mac address.

01:22.740 --> 01:24.060
You see the IP layer.

01:24.060 --> 01:25.300
You see TCP layer.

01:25.300 --> 01:29.540
You see http, http request.

01:29.700 --> 01:33.100
And right now you see only this type.

01:33.140 --> 01:33.500
Okay.

01:33.940 --> 01:37.780
So now you saw you learn how to use the show method.

01:37.780 --> 01:43.540
And you see that this show method will give you a lot more information okay.

01:43.580 --> 01:45.780
Information that you really need.

01:45.820 --> 01:46.180
Okay.

01:46.220 --> 01:46.940
Very good.

01:47.180 --> 01:49.900
Again let me use clear here.

01:52.580 --> 01:53.340
Come on.

01:54.420 --> 01:58.260
Okay I want to execute this again.

01:58.260 --> 02:03.620
And let's go back to browser here while you were using Python okay.

02:03.660 --> 02:05.220
We need to go to this link.

02:05.260 --> 02:11.480
Let me go to this link here I want to show you how you can use this website.

02:11.520 --> 02:12.360
Okay.

02:12.400 --> 02:16.560
And your program to get the username and also the password.

02:16.800 --> 02:21.280
So this is a login page okay that you can use here.

02:22.840 --> 02:24.200
We have a login page here.

02:24.200 --> 02:28.760
Let me hit the log in here and.

02:31.520 --> 02:32.120
Okay.

02:32.840 --> 02:34.440
We don't have anything.

02:34.480 --> 02:35.640
Let's hit next.

02:36.280 --> 02:36.880
Previous.

02:40.800 --> 02:43.680
We must have something called login okay.

02:43.680 --> 02:45.160
We have a login here.

02:45.720 --> 02:47.520
And I want to provide the username.

02:47.520 --> 02:48.600
You see it is admin.

02:48.640 --> 02:52.920
And I also want to provide the password which is going to be admin.

02:52.960 --> 02:55.400
Any password you want you can provide it here.

02:55.440 --> 02:56.320
Hit login.

02:58.520 --> 03:01.360
And now you see we are logged in.

03:01.360 --> 03:07.080
Let's go back here and see what did we captured here okay.

03:10.240 --> 03:12.060
IP Ethernet.

03:19.180 --> 03:23.420
See, we captured a lot of data here.

03:25.420 --> 03:29.580
And also we captured something called row here.

03:29.620 --> 03:30.380
Okay.

03:30.420 --> 03:33.260
And it has a field called load.

03:33.460 --> 03:36.500
And you see we have the username which is equal to admin.

03:36.500 --> 03:38.660
And password is equal to admin.

03:38.940 --> 03:41.380
This is something that we capture.

03:41.420 --> 03:42.940
This is a packet okay.

03:42.980 --> 03:45.780
With its data a layer.

03:46.060 --> 03:47.780
And we capture this.

03:48.140 --> 03:48.380
So.

03:51.460 --> 03:52.820
Okay we captured this.

03:53.660 --> 03:58.900
Now I can as you see we have a lot of information here in this terminal.

03:58.940 --> 04:03.380
I want I want to print only this data that is highlighted.

04:03.420 --> 04:04.100
Okay.

04:04.140 --> 04:07.100
Let me use Ctrl C here and then go back here.

04:07.700 --> 04:10.460
Right here I can specify that very easily.

04:10.500 --> 04:11.220
Okay.

04:11.220 --> 04:14.420
You see we just use one if condition.

04:14.420 --> 04:15.250
And is if.

04:15.290 --> 04:20.770
If this condition has a layer called HTTP and HTTP request, we have such kind of thing.

04:21.370 --> 04:26.490
And also if you want to use the other one, we can use another if condition.

04:26.490 --> 04:33.930
If package dot has layer okay.

04:36.770 --> 04:38.490
Scapy dot.

04:39.050 --> 04:39.970
What was that?

04:40.250 --> 04:42.650
That was the name of the layer.

04:42.970 --> 04:44.690
It was raw okay.

04:46.650 --> 04:48.690
Let's see where was that.

05:05.290 --> 05:05.570
Okay.

05:05.570 --> 05:07.490
It was raw I think raw and load.

05:07.610 --> 05:10.010
And now I can't find that.

05:10.050 --> 05:12.970
Maybe that is only writing here.

05:13.850 --> 05:14.250
Okay.

05:14.770 --> 05:15.410
Forget it.

05:15.650 --> 05:22.870
That was raw All with capital R, and it has another thing.

05:23.030 --> 05:23.310
Okay.

05:23.350 --> 05:24.470
That was load.

05:24.510 --> 05:24.790
Okay.

05:24.790 --> 05:26.430
That we will be using that.

05:26.630 --> 05:32.070
So now okay I have this layer called raw.

05:32.110 --> 05:32.270
Okay.

05:32.310 --> 05:34.390
And inside this I have load.

05:34.830 --> 05:36.270
Now let's print this.

05:36.310 --> 05:43.990
Okay let me hit tab here instead of using show method.

05:45.070 --> 05:48.270
I want to use.

05:50.990 --> 05:52.470
I want to print another thing.

05:52.510 --> 05:52.910
Okay.

05:55.390 --> 05:57.190
That is the load part.

05:57.230 --> 05:59.510
So let's use package.

06:00.510 --> 06:10.870
And here inside this we have scapy dot row and dot load.

06:13.030 --> 06:14.430
Now let's save this.

06:14.470 --> 06:15.270
And.

06:17.750 --> 06:18.950
Save this one.

06:21.310 --> 06:22.290
Let's go back here.

06:22.850 --> 06:28.530
Let's just clear and re execute this right now.

06:28.530 --> 06:34.210
You see it's doing nothing and I am going to use it I'm going to log out.

06:34.210 --> 06:36.970
And then trying to log in we have admin.

06:36.970 --> 06:42.170
This time I want to use 1234567 and hit log in.

06:42.330 --> 06:49.570
Now I'm sure the one up to seven I don't want this to be saved here.

06:49.570 --> 06:59.050
Let's see that I only capture this username and also the password if I try to.

07:02.010 --> 07:10.330
Search for anything else and access them here.

07:10.330 --> 07:13.570
You see I capture nothing okay.

07:13.610 --> 07:19.170
But this one username and password which is very good.

07:19.210 --> 07:22.330
Okay, so we have done this up to here.

07:22.370 --> 07:25.330
Let's go in the next video and improve this program.
