WEBVTT

00:01.000 --> 00:01.240
Okay.

00:01.240 --> 00:07.920
We just started our program and we completed up to here, and we got a good 100 for this website because

00:07.920 --> 00:10.520
we were able to get access to this.

00:10.520 --> 00:19.960
And if I, for example, change this to something else like this, and you will see that when the domain

00:19.960 --> 00:26.800
is not exist or the sub domain is not exist, we get something like this an error.

00:26.840 --> 00:27.360
Okay.

00:27.400 --> 00:30.800
Let's see something like this.

00:31.400 --> 00:33.960
Request exception connection error okay.

00:34.000 --> 00:35.280
Something like this.

00:35.280 --> 00:39.160
That means this URL doesn't exist on internet.

00:39.160 --> 00:40.280
So perfect.

00:41.400 --> 00:43.120
And now let me.

00:46.680 --> 00:47.880
Come right here okay.

00:47.920 --> 00:50.360
If I go back you see this.

00:50.400 --> 00:52.320
It looks like the main website okay.

00:52.320 --> 00:53.200
Metasploit.

00:53.360 --> 01:00.280
And we have some sub domain like PHP my admin, this one and also this one okay.

01:01.700 --> 01:11.940
So now of course, these are not the subdomain and the real subdomain, but if um or it could be a subdomain

01:11.940 --> 01:12.140
okay.

01:12.180 --> 01:13.900
And here we can access phpMyAdmin.

01:13.900 --> 01:16.580
And here we could access this one.

01:16.580 --> 01:18.540
And in here we could access this one.

01:18.740 --> 01:22.100
So if I click here you see that the URL changes.

01:22.180 --> 01:27.740
And this is one of the domain subdomain for this main main URL.

01:28.180 --> 01:33.260
And also if I go back here the second one you see I access this one.

01:33.260 --> 01:36.540
And also for this one I access this one.

01:36.580 --> 01:36.980
Okay.

01:38.020 --> 01:43.220
So now I can complete the program uh like this okay.

01:43.220 --> 01:46.020
Now that uh, URL is equal to this one.

01:46.540 --> 01:49.620
Or I could get the URL.

01:50.020 --> 01:54.380
Let me copy this from here and in here.

01:54.380 --> 01:58.700
Let me paste it, use Ctrl V and also instead of.

02:01.860 --> 02:07.890
Uh that I'm going to just use this part right there.

02:07.930 --> 02:15.210
Now, if I use control S and then go back here, let's see if we get to 200 or not.

02:15.850 --> 02:19.050
You see that immediately I get response go to 100 okay.

02:19.090 --> 02:20.050
That means it is okay.

02:20.090 --> 02:23.690
I am able to get access to this part or to this website.

02:24.210 --> 02:30.450
And also if we, for example, change this to one and save this again.

02:30.450 --> 02:33.650
If I came back here, you will see that this doesn't exist.

02:33.650 --> 02:36.050
And it gives me something like this okay.

02:36.090 --> 02:37.130
So it is not very good.

02:37.130 --> 02:38.890
I have to handle that as well.

02:39.170 --> 02:42.370
So we can handle it very easy using try and exception.

02:42.690 --> 02:44.050
And let me use try.

02:46.610 --> 02:48.570
A tab and.

02:51.130 --> 02:54.170
Here I am going to use accept.

03:00.090 --> 03:05.790
And you see we have request this error.

03:05.830 --> 03:06.230
Okay.

03:08.710 --> 03:10.670
So if this happened.

03:12.990 --> 03:13.670
Let's.

03:16.110 --> 03:16.750
Come on.

03:17.830 --> 03:19.670
Don't I have any piercefield.

03:19.710 --> 03:20.790
So I use control V.

03:21.270 --> 03:24.430
If this happen, then I want to pass.

03:25.910 --> 03:26.350
Okay.

03:26.390 --> 03:28.590
Now let's use it.

03:29.790 --> 03:31.390
Okay, I get 100.

03:33.070 --> 03:35.630
I change this to something like this.

03:40.350 --> 03:44.430
And this time it passes, okay?

03:44.710 --> 03:46.870
And I get no error.

03:47.070 --> 03:48.430
So perfect.

03:48.430 --> 03:50.310
We are almost complete.

03:50.310 --> 03:51.190
And let's go.

03:52.310 --> 03:54.470
Uh, get the subdomain for this.

03:54.510 --> 03:54.910
Okay.

03:57.150 --> 04:00.310
Let's see if I get to get 100.

04:00.350 --> 04:00.710
Okay.

04:01.230 --> 04:03.910
So I will see in the next lecture.
