Welcome to this lecture.
So in the previous couple of lectures we just made this I estimate document and another one is discord
which is the javascript file which will be calling some material here to the.
Call this speech file and just inject these keys to the new image file.
So which is basically getting our request out.
Basically what we say the emails file are sending data is a GET request by creating this new image.
So let's create a new file again and this file now will be our key logger file which is the PSP profile
which will be responsible to inject the code or basically string.
So first of all let me say this and this one would be key logo dot PSP.
So if you just remember we had made use of this key logger in this here which is key logger that PSP
so this names should be same as here.
So let's create this space you file so we haven't distorted anything over this because you put it in
symbol file.
So you need not to be worried about this.
This simple file also is what is happening over here.
If you have not distorted the PSP in these courses but it is simple.
BEARDSLEY file so don't worry.
So first of all what we just detail what we just opened up as we tag and we just closed so same is script.
So we what normally do is opening this script tag including the script tag is same as here for the PSP.
It is opening the PSP tech and closing the PSP tag.
So after that simply go here and create the variable so if you remember creating a variable in Java
is going to be with a vacuum.
But in the case of PSP it will be starting with a dollar sign.
It doesn't need any data types so I'll just create this AVC which is the folder and I'll just make use
of this dollar sign and post this.
Let me show you what is happening over here.
Symes is getting are basically creating a variable ABC and saving the data text walks into it.
So I'll say something like let me say SaaS for so what we are doing here is we are just getting the
content.
This is referring to is always give.
So if I just see here and develop this find here SaaS for then you could see we have something like
here that is a name in field with the name.
So this input field is.
Let me go here.
This is that in football with the name.
So we are just getting.
So this is basically the source for the name here.
So we are just getting these sorts for the key lower we're just using this global variable are basically
we are just creating this ABC variable in saving the data ticks box into it.
So that is the way of using this post was these basically same is post to request.
It is the global variable.
So it need not to be created with something like this.
It is a global variable means.
It will be visible or it will be visible in any scope in the subway script or basically in this scope.
So it will be visible anyway.
So let me just close this index first and that is we just created the ABC variable.
After that we'll just make use of this log file.
So is this say log file which will be opening the data.
So first of all we haven't created some folder over here so let me just create the new file which will
this record our keystroke.
So I'll just say something that is data dirty to sort this out dotted or testifying.
So on this in here.
So in the same open the data not the extreme.
And I want to make use of this append more so it should be inside this single code and append plus these
basically we want to open this file which is dotted or t t in append a mode.
So we have opened this file which will this record our keystroke.
So I'll just write that keystroke in this file.
Now with DCF right Mr. would do the method of file handling and it is the method appears to be so we
want to write in this log file with the content of ABC which is basically this ABC So where does writing
the content of ABC do that a dirty 60 now after you rise you have to close that file.
So we're just closing the file that has been open which is obvious the log file.
So this is the Pearce record.
So we are just searching for the source for which is basically over here which is this name fill.
If you go here that this file has the name is source for.
So I'll be just getting that feel.
We're just getting the data that fill and storing in ABC where the spending are basically opening the
file which is this file which is just created over here.
If it is not created it will simply get the new one for you.
And in the more duties opening there been more I do this right.
The content of ABC in the log file it will close that log file so simple is this Spears free file to
have this created now it appears your file.
Let me save this one.
Now next thing what you need to do is you have to go maybe in the court dodges are not in court.
It is in your daughter's demo.
So you have to include a dad called Da.
This file which is obviously your javascript file in this folder.
So let's do that real quick.
So let me see let me just indicate that in Bardi.
So where is your body.
So bodies over here.
So as a syndicate right over here up to this body maybe they see it has some funds and over here the
device could fund.
And this script is over here.
It is close here.
So body is or boy here.
And let's see where we can dig so you can inject anyway.
This is navigation bar.
So let me just inject somewhere here.
It doesn't really matter but I'll disintegrate here before the head or maybe up to this body.
So this is script.
And instead of this type either say yes or C and I'll just inject our chord dart zeros.
So this is our core audience which is this file.
It will just call this killer logger dot B as BSB and Mexico.
This killer that BHP is is stored in the same for over here.
So now let's save everything
and go back here.
Now let's open our GEM server because it is a student exam.
So I just start my exam server again.
So let me just start it and now what you need to do is open your browser.
And it should be 1 2 7 which is your local host.
And instead of death board is would be the following which is key logger and instead that key logger
you have your key DOT estimates.
So this is our base of this timber.
So now what you need to do is you need to split hairs something.
So either say hello to disperse this Hello.
Let's see if this is recorded or not.
So all you need to do is go to the see them and ask two dogs.
You said one key logger in the data is created over here because we had created the before and let's
see it has a recorded right here.
The halo has recorded so you can support anything over here and.
So now let's see that if I just delete this that is the data and now when is this.
See over here now.
OK.
Let me again delete this and OK.
It is already created because something is going on here.
So you could see that if I also delete and if I just try to do anything over here then if it even if
it is space then data is created because this was due to the append mode we had created in here that
is the piece you file that is in this append more or MySQL not even more it is due to the open.
So this is though command that is going to just create a new file if the file is not there already.
That means we had deleted that files.
Let's go again.
And we had deleted this data file from here.
But when you just go over here and started to write anything even if anything over here then it will
just create that data folder for you because that is of this open and it is going to create the new
one if there is not.
So we are just searching for this name in this estimate which is the field and that freezes over here.
You can also parse the query or basically the code right here and this is the simple basic javascript
Clover you can make it one skill over and you can search for this but it is the simple key logger you
can simply make use of disputes you fight.
It's that we haven't learned about the PSP in this score so I have not gone through it once scored up
the PSP it is a simple way to get them on global variable which is supposed to global variability same
as saying post the content of that field which is this field into ABC and create me a new file post
that the content of ABC to this log file includes that file so that will see the log file.
So this is a simple key logger which is based on these javascript and PSP and obviously this team in.
So this will be there for this Lexus even the next one.