Okay, let's come back here.
You see, we are printing all the packets that has HTTP request.
And you see, we have seen a lot of information here, a lot of things that is not readable.
Okay.
Here we have another method okay that we can use with this packet that is called show.
Now if I use this one and come back here.
Let me use Ctrl C here.
Hit enter again.
Now let's go back to this our website called oneweb.com.
It is for testing vulnerability okay.
Your vulnerability programs and a lot of things.
Let's come back here.
Now you see very readable data okay.
Let me use Ctrl C here.
Let me show you a lot of thing here okay.
Now this show method show you each layer.
Okay.
You see we have Ethernet layer here that this has destination and also source.
You see the destination is the Mac address for router and source is my Mac address.
You see the IP layer.
You see TCP layer.
You see http, http request.
And right now you see only this type.
Okay.
So now you saw you learn how to use the show method.
And you see that this show method will give you a lot more information okay.
Information that you really need.
Okay.
Very good.
Again let me use clear here.
Come on.
Okay I want to execute this again.
And let's go back to browser here while you were using Python okay.
We need to go to this link.
Let me go to this link here I want to show you how you can use this website.
Okay.
And your program to get the username and also the password.
So this is a login page okay that you can use here.
We have a login page here.
Let me hit the log in here and.
Okay.
We don't have anything.
Let's hit next.
Previous.
We must have something called login okay.
We have a login here.
And I want to provide the username.
You see it is admin.
And I also want to provide the password which is going to be admin.
Any password you want you can provide it here.
Hit login.
And now you see we are logged in.
Let's go back here and see what did we captured here okay.
IP Ethernet.
See, we captured a lot of data here.
And also we captured something called row here.
Okay.
And it has a field called load.
And you see we have the username which is equal to admin.
And password is equal to admin.
This is something that we capture.
This is a packet okay.
With its data a layer.
And we capture this.
So.
Okay we captured this.
Now I can as you see we have a lot of information here in this terminal.
I want I want to print only this data that is highlighted.
Okay.
Let me use Ctrl C here and then go back here.
Right here I can specify that very easily.
Okay.
You see we just use one if condition.
And is if.
If this condition has a layer called HTTP and HTTP request, we have such kind of thing.
And also if you want to use the other one, we can use another if condition.
If package dot has layer okay.
Scapy dot.
What was that?
That was the name of the layer.
It was raw okay.
Let's see where was that.
Okay.
It was raw I think raw and load.
And now I can't find that.
Maybe that is only writing here.
Okay.
Forget it.
That was raw All with capital R, and it has another thing.
Okay.
That was load.
Okay.
That we will be using that.
So now okay I have this layer called raw.
Okay.
And inside this I have load.
Now let's print this.
Okay let me hit tab here instead of using show method.
I want to use.
I want to print another thing.
Okay.
That is the load part.
So let's use package.
And here inside this we have scapy dot row and dot load.
Now let's save this.
And.
Save this one.
Let's go back here.
Let's just clear and re execute this right now.
You see it's doing nothing and I am going to use it I'm going to log out.
And then trying to log in we have admin.
This time I want to use 1234567 and hit log in.
Now I'm sure the one up to seven I don't want this to be saved here.
Let's see that I only capture this username and also the password if I try to.
Search for anything else and access them here.
You see I capture nothing okay.
But this one username and password which is very good.
Okay, so we have done this up to here.
Let's go in the next video and improve this program.