So I think it's going to be the key logger, as you know, the key logger will record the keystrokes
the user has pressed and log into the file.
Are you going to email?
So this is the basic purpose of the key logger.
So you need to import the module corporate input.
So this is by input, not input.
And we need to finish this module using this pipe.
So people start by and book and I have already started sweating because it already started, so we just
this using this.
And you need to import two functions, that is a by and large, that is from buying the keyboard and
need to say import, let's start.
Now, before going into this, I want to show you one thing that is we can open this file as a statement
also with the opening of September.
And in the more Apple and as you have to consider the current and you can say it's not so just another
way of opening the files, what this, uh, makes little differences of you.
No need to worry about disclosing the file disk operator automatically when you have accepted this with
the loop.
But I should not do so with a statement issued this if that growth will be automatically performed so
that you got this with the operator.
So in the same way we can say with.
With DNA, the result is not a function in this, uh uh, by computer keyboard.
Not even to say he's on the press, so whenever there is a key press on the keyboard and it will execute
the function that separates, and there is another thing that is underneath.
So when you press the key, you should release that, right.
So underneath it all, I declare this function that is the result.
You can also name whatever you want in this president.
So you need to open his cell and to a large joint.
So this is will create the thread and this district gets started and run.
This is another function.
So this result will go on resiting.
And whenever there is a key piece on the key, what this function will be executed.
So we need to define these functions.
Live presser.
And the argument is this residual function was the key that we have the key object to this particular
function that is key and we can just print off key.
And similarly, we're on the list, so if you have the space key on the list, if you want to use some
code, you can execute.
On the list of key.
So let me just say for now, I think we should we are good to go in order to execute this one.
By and right, sorry for not my daughter has been running and whatever I type in the key, you are going
to print this.
You can see the random keys I'm just printing.
So you can see these are the keys I'm predicting and we are got the output.
So now what I want to do is I want to say, if Ketut, uh, if I pursued the key escape and there it
is the escape, then I should exit this function.
So if he is equal is equal to and capital key dot Iasi.
Yes.
For a skip.
And you need to do this.
Uh you need to return for us.
So they're just sending the files to this variable, so on, uh, this is not a function on seeing this
files, it will stop, uh, listening servers, run this to get you more understanding.
So I have people who are these, uh, letters when President Skip it has.
So I'm just content to present this when I release this on my program.
So this is just an ID to the program.
So now what we're going to do is we are going to read this content to file.
Uh, let's say a physical go into this territory.
So this is assembled at a physical to open off some people not and I'm going to write it in because
we maybe the the text contains some other key strokes.
So we need to open them to the text so we can just say, oh, you should of printing.
We can say that right off key.
And here we can say of Ducros.
I think that the squad works, so it's going to run out program and it's Nikil.
Sorry for this weekend, the suggestion.
So, no, we need to facilities that key douching not as good and run this to.
Etc.
Now, my are the keys are have been returned to this file and let's see if we can see all of the keys
here, Michael and you exit or some other keys I have just randomly.
So this is a basic Raegan right in the python, and you're going to execute, uh, under Domitian.
So now what are going to do?
We are going to include this email Bohmer email code, which you have seen in the previous video.
All right, now, what we want to do is we are going to copy these two modules and paste it in here,
so we are just logging into this and shot this message.
I'm going to send the file contents to this one.
Script, copy and paste, you can hear.
So I'm creating the main object, starting business and logging in and sending out this message, I
will send this message.
So let me go to my e-mail.
I attended the password after that e-mail Bombadier.
So that means.
Since the state saw.
So Reagan's dirty war.
So this is the one with this one.
OK, we have successfully covid.
And let me change the password to this one.
All right, now we need to open this file again because we have closed this file descriptor here.
And I just share in the rumor because you don't want to edit those contacts and messages close to your
heart rate.
And I can say you have not close afterwards.
Now, my message will be, are the keystrokes I'm getting from the hackers wanted you to take out so
that we are not on this?
All right, let me clear up the contents of this, just to make sure only this output has been going
into the mail and the script that certainly is good by.
And some random keys.
So my script has been successfully done now that if you get an email or not.
So I think I have brought this right, spam, and then we go, we have got the keys that we have stored
in that picture for.
So that's all for this, basically, Robert.
Guys, I hope you have understood, so we are just creating this listener and whenever there is a key
piece, we are executing this function and you're storing it in the file, then we are closing the file.
And after this is another, we are going to create the just shrugging in why are these made of gold?
And then we're reading the sample text for contents and then we are closing it.
So one thing you can do is you can create of this contents after this sending the mail.
That's so if you got the contents of these contents, you don't need to get it again.
So that's why you can just delete the contents so you can see the value plus and you've got a very tough.
So I think this will work great.
So let me go ahead and corral this contentious.
Let me say this and that, let's put this group together.
So let's see.
So there are no contents in the sand because we have all written or written with this empty, empty
shell.
So we have got them issuing.
Why did we get the impression that this message.
Let's go and ask again.
So there are maybe there is deep
and deep message, just greed, so let's not worry about the clearing, the contents.
So that's sort of the basic with this, Kyra, you can just check the previous malcontents to see what
are the common keystrokes.
So the tough ones you do.
I hope you understood this krca.