Okay, now it is time to test our program on a real machine remote Windows 7 that we have.
And also I think it is not looks very it doesn't look very beautiful.
I want to add some extra data here.
Okay.
For example, while we are printing the URL we need to have a text here.
So I'm going to just add that here and let's.
Uh let's add this I'm going to tell this HTTP request okay is going to be the HTTP request.
And here we have the URL.
So I'm going to concatenate this with the URL okay.
And also here we are printing the load.
Later we will be adding some details.
So right here you see we have the URL here that this will get me the URL.
So let's change that to a function.
Define a new function.
I'm going to name this get underscore URL.
And this is going to get a package.
And here let's just return this one okay.
So this control x and here use return.
Yes this okay.
While we are returning that then we can use that here.
That method or that function which is called get URL.
And here we need to give that package.
Very good.
So now it is completed this part okay.
And also we need to create another function.
As you see this function this part okay.
That is start from if.
A package has Skpro okay Username.
This will get me the login info for this part.
Okay, so it is better to change this one to a new function as well.
So let's use that here.
And this method is going to be let's use git login info.
It's again asking for a package.
And here I use Ctrl V and I just paste everything that is here okay.
And now you see we are printing and also we are doing a lot of stuff here.
We are using break because there is a git login info and method.
So we need to return this load here from here okay.
So let's use return load.
Perfect.
Now that you're returning this load from here you need to get that from somewhere else again.
For example, inside this function, after you're printing this, uh, after you print that, let's
create a variable, name it login info.
So this login info is equal to get underscore login info.
And I give that package to this.
And then here I need to check because all the time I don't have this login info for each page.
I don't have this login info.
So here I can check if this login info exists then do a print for me.
Okay, here let's use two backslash n.
That means go to new line and then.
Print this one a text for example uh possible username and password maybe.
Is this one.
Okay, so here I need to concatenate that login info.
That is something that I want to change that.
And again okay I'm going to go to new line.
So backslash and backslash.
That looks perfect.
Okay.
Now our program almost completed.
Just we haven't tested this yet.
Let me go back to my Windows 7.
Okay.
That is here.
Perfect.
And also let me go back to my terminal that is here.
Here I have two terminal okay.
One of them is Arpspoof program that we just created.
And also we have packet sniffer.
Okay.
First let me use this one Python spoofer ERP.
Uh.
It's both.
Okay, I'm going to split this.
Alley right now.
It is doing its job.
Okay.
It is spoofing this program, I think.
And also, I have this Python package sniffer.
Dot py, hit enter.
So right now this bot is doing their jobs.
I need to go back here.
I want to capture a username and password for example.
Okay let's see.
We have this one which is admin.
And this one is going to be for example name.
And the password is going to be name at login.
No.
And let's see.
It is waiting.
Right now it is doing nothing.
Okay.
Oh my God.
I think I know why this is not loaded.
That is because of this one.
I happened to Sue.
Okay, echo, I'm sure that is because of this one.
Is it?
Now I can execute this.
And oh my God.
We have again an error that is HTTP request.
Still not to the URL.
Which line is this line 21 in a packet sniffer.
Okay, we have an error here.
No problem.
Again it is because of this okay URL and also the other one.
We need to again go back to line 21 which is here we have the URL.
I need to change this to str.
Okay.
Maybe again.
We have some here.
No problem.
If we have it, we will be finding it.
Okay.
Right now it is running.
And again I'm going to go to my Windows 7.
Okay.
Let's go back.
Search.
Okay.
It is Windows 7.
Now again I am going to go here.
What was that website.
It is.
It was one web.
Com.
Okay.
This site can't be reached.
Why?
Okay, let's go and see if we have captured anything on windows on Kali Linux or not.
Oh my God.
Again I have another error that is login info.
Okay, this login info needs to be changed to.
Going to this one.
Okay.
Very good.
Like this.
You can find all the error and fix it okay.
Having this kind of error is one of the job of each programmer.
Okay.
Now you see, we have something very good.
Let me come back here.
And I want to execute this once again.
Hit enter.
Okay, let's go back to Windows 7.
Okay.
It was 1.com.
It's this one.
Uh.
Why is it doing this for me now?
Okay.
It looks like we lost the connection.
Network.
Internet connection.
No problem.
Uh, I will fix this.
Okay, let's go and see if this program captured anything or not.
Okay.
It looks like it did.
Captured like this.
Okay.
It did capture the data like URL.
Okay.
And I will fix the network connection.
And then I will show you that it will capture the username and also the password that we provide into
that, uh, website here.