Okay, now I'm going to create or I'm going to change the program in a way that and be completely generic.
Okay.
And we use this, uh, program to.
To find vulnerabilities for all websites.
Okay.
For example, we are going to check for, uh, some website that they are using, get method, some
to some in some forms.
And also in a lot of ways.
So I'm going to create or I'm going to use this program in a way that we could use this in a lot of,
uh, places and a lot of, on a lot of websites.
Okay.
So, uh, let's create a method to run this program.
Okay.
So I'm going to name this method, uh, run.
Scanner.
So I'm going to give the self method as an argument here, because we give the self to all method when
it is inside a class.
So let's use a for loop here for I have length in self dot.
I'm going to check for all the target link and that is.
Here you see we have target link.
It is a list.
So I'm going to use the target link.
And we have the forms.
So this forms is going to be equal to self dot extract forms okay.
When we are trying to.
Uh first we give a link and then we extract all the from forms from that.
Okay.
From that specific link that is uh here.
And then we give each link for this extract form because we created this method here we give the length
keyword.
The link is here.
Okay.
It is a key.
Right now is a keyword actually or available for each target in target link, which is a list, and
it is each element of that.
So it will give me a lot of link.
And for each link I give that to extract form which is a method.
So.
Now that I have these forms I'm going to go inside this form.
So let's use for form not forms form this time form in forms okay.
And in here I'm going to print something like this.
Uh testing form in.
A link that we just get it from uh here.
Okay.
And then I'm going to check for some kind of link, for example.
Let's see here we have name is equal to test.
That means whenever a link have this equality inside it that means that form use get method.
So we need to check this okay.
So I use if here.
If this equality assigned is in link then let's print okay I want to print.
That this thing.
Link okay.
So perfect.
Now this run scanner is working I'm sure it's working.
If you have any kind of error, we will be solving it.
Okay, so how can we use it now?
We will be using it first to get, uh, first to extract forms and then we will be testing it on for
example, x axis attacks.
Okay.
First we will be extracting form and then we for each of these forms we are going to print the links.
And if the link has this assigned then we are going to test that on that link.
Okay.
So first let's go and learn something about x axis attacks and then uh implement that here.
So now if you want to do any kind of um attack on the, on a specific website.
So we will be creating that method and then we will be calling them here.
So for example, if you're using if you're going to do an attack on this kind of link.
So we will be calling the function or the method here.
Or if you're going to other kind of uh attacks.
So we will be using them here.
Okay.
We will be calling them here.
So let's go and learn something about X is is attacks.