Okay, now you see that when we extracted data, you see, we have a list.
Okay.
That means this form is a list.
And each element of this list is a form, and it has only one element.
So let's go back here.
And instead of printing this I want to do something else.
And that is to go inside and take it out of the list.
So to do that I need to iterate over it.
So use a for loop.
And in here I'm going to give a form.
In form forms list here if I just print the form and hit enter you will see something like this.
Now.
Okay.
Now you see that this form and now it is not a list, it's only an element.
Okay, there's something out of the.
List.
Okay.
Uh.
So now again, instead of printing, I want to get some specific data from here.
For example, I need something like action.
Okay.
Which is very important.
I need the post method right now.
This post this is very important.
And also some other things like input tags which is very important.
That is here I want to print this input and also not all the input okay.
Just name of the input.
That is very important because I want to send data.
So I need names here okay.
So.
Uh here, now that we have, uh, I'm going to ask for that.
It's action.
Okay.
Action is equal to.
We have the form.
Then use dot get method here and then just provide the action.
And if I print the action and save this let's go back here and try to print this.
Now you see that it gives me the action.
The action is equal to index dot php Nslookup dot php okay.
This is very important.
And also if I want to print beside this action something like method.
So if I name this method is equal to form dot get here is going to be method.
Now if I print the method it will give me the method.
And also if I want to print the input because we have a lot of input to input now.
So again it's going to be changed back to a list like this.
Okay.
So input list it is going to be equal to form dot find all.
Okay.
And here we are going to just give the input to this.
And now if I just print the input list let's see what do we see.
What do we have here.
Okay.
Now you see.
We have two things here.
First we have the URL and then we have the post.
That means this is the URL or the action.
And the other one is the method that all other stuff is Uh, inputs and something else that needs to
be handled.
Okay.
It is a table now.
And here.
Now, instead of printing this input list, I need to use a for loop.
Just like here.
That needs to go inside, uh, to get those things out.
So for we have input and input list.
I want to for example I want to print just the input now.
And now you will see something else.
Uh let's see what do we have here?
Um, still, we have the table, and the program is not finished here.
If I hit enter, you will see We are getting more data.
Until.
Let us go and finish.
Okay.
So we have four input and input list print input now.
And instead of just printing that I need to get names of that okay.
So input underscore name is going to be equal to.
We have the input dot get method here I just going to give name of this inputs.
So let's print the input name.
And let's see now what do we have.
Okay.
We are having the methods.
We are having the actions we need to have name of the input names.
Okay.
Let's see what is it going to give me.
Oops.
Uh.
Something happened.
Let me clear this again.
Um.
We have.
Okay.
We have the post and also this one.
But this is not working.
As you see, it is giving me a table.
And in here I need to hit enter.
So until it is going to be completed.
Okay.
And like this okay here we have an error that is input here okay.
We are using a variable input.
And that is not declared before.
That means we have a very big mistake here.
We need to put this inside a question mark.
So that was one of the biggest mistake I ever made okay Are not to do that.
Be careful about that.
Now let's see what is it going to give me?
Okay.
It is giving me the first thing which is the the URL or the action.
The next one is the method and the other one we have a target host.
This is the name of the first input.
The second one we have Dennis look at PHP submit button.
That is the next button that we have the next input that is a button here.
So this one and also we have two input here okay.
The first one is this one.
The first one is target host that is here okay.
That is that something we are going to add data here.
And then we hit this lookup DNS button that is here okay.
Now we can use this to to do whatever we want with this form okay.
Thanks for watching.