WEBVTT

00:01.240 --> 00:06.640
Okay, now you see that when we extracted data, you see, we have a list.

00:06.680 --> 00:07.080
Okay.

00:08.000 --> 00:09.920
That means this form is a list.

00:09.920 --> 00:15.440
And each element of this list is a form, and it has only one element.

00:15.680 --> 00:18.960
So let's go back here.

00:18.960 --> 00:24.800
And instead of printing this I want to do something else.

00:24.800 --> 00:29.720
And that is to go inside and take it out of the list.

00:29.840 --> 00:33.600
So to do that I need to iterate over it.

00:33.720 --> 00:35.680
So use a for loop.

00:35.680 --> 00:37.840
And in here I'm going to give a form.

00:38.760 --> 00:52.040
In form forms list here if I just print the form and hit enter you will see something like this.

00:52.040 --> 00:52.360
Now.

00:55.040 --> 00:55.800
Okay.

00:55.800 --> 01:01.740
Now you see that this form and now it is not a list, it's only an element.

01:01.780 --> 01:04.740
Okay, there's something out of the.

01:08.300 --> 01:08.660
List.

01:08.700 --> 01:09.060
Okay.

01:12.020 --> 01:16.740
Uh.

01:19.100 --> 01:27.260
So now again, instead of printing, I want to get some specific data from here.

01:27.260 --> 01:31.260
For example, I need something like action.

01:31.300 --> 01:31.500
Okay.

01:31.540 --> 01:32.980
Which is very important.

01:32.980 --> 01:36.140
I need the post method right now.

01:36.140 --> 01:38.100
This post this is very important.

01:38.100 --> 01:42.780
And also some other things like input tags which is very important.

01:42.780 --> 01:48.580
That is here I want to print this input and also not all the input okay.

01:48.580 --> 01:50.460
Just name of the input.

01:50.460 --> 01:53.700
That is very important because I want to send data.

01:53.700 --> 01:56.660
So I need names here okay.

01:56.700 --> 01:56.940
So.

01:59.780 --> 02:03.830
Uh here, now that we have, uh, I'm going to ask for that.

02:03.830 --> 02:04.590
It's action.

02:04.590 --> 02:05.030
Okay.

02:05.070 --> 02:06.390
Action is equal to.

02:06.910 --> 02:08.230
We have the form.

02:08.310 --> 02:13.430
Then use dot get method here and then just provide the action.

02:14.350 --> 02:23.870
And if I print the action and save this let's go back here and try to print this.

02:23.870 --> 02:26.270
Now you see that it gives me the action.

02:26.270 --> 02:31.270
The action is equal to index dot php Nslookup dot php okay.

02:31.310 --> 02:33.270
This is very important.

02:33.270 --> 02:39.750
And also if I want to print beside this action something like method.

02:40.270 --> 02:51.630
So if I name this method is equal to form dot get here is going to be method.

02:52.710 --> 02:57.750
Now if I print the method it will give me the method.

02:57.750 --> 03:04.890
And also if I want to print the input because we have a lot of input to input now.

03:05.090 --> 03:08.770
So again it's going to be changed back to a list like this.

03:08.810 --> 03:09.650
Okay.

03:09.690 --> 03:18.690
So input list it is going to be equal to form dot find all.

03:23.970 --> 03:25.090
Okay.

03:25.130 --> 03:29.010
And here we are going to just give the input to this.

03:29.330 --> 03:35.490
And now if I just print the input list let's see what do we see.

03:35.490 --> 03:37.090
What do we have here.

03:40.890 --> 03:41.290
Okay.

03:41.850 --> 03:42.570
Now you see.

03:44.650 --> 03:47.250
We have two things here.

03:47.410 --> 03:50.930
First we have the URL and then we have the post.

03:50.930 --> 03:54.610
That means this is the URL or the action.

03:54.610 --> 04:04.380
And the other one is the method that all other stuff is Uh, inputs and something else that needs to

04:04.380 --> 04:05.020
be handled.

04:05.020 --> 04:05.260
Okay.

04:05.300 --> 04:06.420
It is a table now.

04:08.500 --> 04:09.620
And here.

04:09.780 --> 04:14.740
Now, instead of printing this input list, I need to use a for loop.

04:14.740 --> 04:15.980
Just like here.

04:16.540 --> 04:21.300
That needs to go inside, uh, to get those things out.

04:21.700 --> 04:25.700
So for we have input and input list.

04:27.540 --> 04:33.620
I want to for example I want to print just the input now.

04:36.100 --> 04:38.460
And now you will see something else.

04:41.260 --> 04:46.540
Uh let's see what do we have here?

04:48.460 --> 04:55.900
Um, still, we have the table, and the program is not finished here.

04:56.020 --> 05:02.200
If I hit enter, you will see We are getting more data.

05:04.560 --> 05:04.880
Until.

05:04.880 --> 05:07.080
Let us go and finish.

05:07.200 --> 05:07.720
Okay.

05:10.280 --> 05:14.120
So we have four input and input list print input now.

05:16.960 --> 05:23.920
And instead of just printing that I need to get names of that okay.

05:24.840 --> 05:29.640
So input underscore name is going to be equal to.

05:30.080 --> 05:37.360
We have the input dot get method here I just going to give name of this inputs.

05:37.800 --> 05:41.320
So let's print the input name.

05:42.880 --> 05:44.880
And let's see now what do we have.

05:44.920 --> 05:45.280
Okay.

05:45.320 --> 05:46.960
We are having the methods.

05:48.200 --> 05:54.880
We are having the actions we need to have name of the input names.

05:54.920 --> 05:55.760
Okay.

05:55.800 --> 05:58.760
Let's see what is it going to give me.

06:02.180 --> 06:02.780
Oops.

06:05.500 --> 06:05.900
Uh.

06:06.020 --> 06:07.020
Something happened.

06:07.180 --> 06:09.620
Let me clear this again.

06:11.820 --> 06:13.620
Um.

06:13.660 --> 06:14.460
We have.

06:16.780 --> 06:17.220
Okay.

06:21.220 --> 06:23.300
We have the post and also this one.

06:23.300 --> 06:25.140
But this is not working.

06:25.140 --> 06:27.020
As you see, it is giving me a table.

06:27.660 --> 06:30.260
And in here I need to hit enter.

06:30.260 --> 06:34.540
So until it is going to be completed.

06:34.540 --> 06:35.220
Okay.

06:35.260 --> 06:42.540
And like this okay here we have an error that is input here okay.

06:42.580 --> 06:44.420
We are using a variable input.

06:44.420 --> 06:47.260
And that is not declared before.

06:47.260 --> 06:49.860
That means we have a very big mistake here.

06:49.860 --> 06:53.180
We need to put this inside a question mark.

06:53.180 --> 07:00.630
So that was one of the biggest mistake I ever made okay Are not to do that.

07:00.630 --> 07:01.910
Be careful about that.

07:05.030 --> 07:07.230
Now let's see what is it going to give me?

07:07.270 --> 07:07.470
Okay.

07:07.510 --> 07:13.590
It is giving me the first thing which is the the URL or the action.

07:13.710 --> 07:18.310
The next one is the method and the other one we have a target host.

07:18.310 --> 07:20.710
This is the name of the first input.

07:20.990 --> 07:24.110
The second one we have Dennis look at PHP submit button.

07:24.110 --> 07:28.950
That is the next button that we have the next input that is a button here.

07:29.950 --> 07:32.790
So this one and also we have two input here okay.

07:32.830 --> 07:36.310
The first one is this one.

07:38.270 --> 07:41.430
The first one is target host that is here okay.

07:41.430 --> 07:45.910
That is that something we are going to add data here.

07:45.910 --> 07:50.550
And then we hit this lookup DNS button that is here okay.

07:51.270 --> 07:55.830
Now we can use this to to do whatever we want with this form okay.

07:56.990 --> 07:58.670
Thanks for watching.
