Now in this lecture we'll make our own next key logger.
So let's first of all see what is the main disadvantage of the Gallagher that we made in the previous
lecture.
So if I run this blogger again then it is going to the again the key that is going to be really or praise.
So this is effectively working in the case of a keyboard.
So let's see one scenario.
What if the user copy and paste to their respective field of the social media.
So if I just go again and if I just copy this again and if I'm going to paste it over here then if we
go back to our killer it is not going to source anything about this username and the password it is
only showing us that it is control C control V that is being praised.
Nothing about this.
What we just copied over here.
So that is the main display one days.
So that is the main disadvantage of this killer.
So let's see how we can make out this modified this killer.
So there comes a paperclip.
So this is very important module.
So let me just copy this first and you can simply do something like open your command terminal and you
can simply paste it over here and just press into.
I've already stalled.
So I do not need to this is one more time so you'd need to install less if you are installing this the
first time.
So after that you can simply close this.
And now you can also make use of ideally or any other module what you can make use of any other I.D.
that is ideally or you can also use Eagle or by some.
But in this case I really like this by tomorrow I am going to make use of this by gem.
So here what you're gonna do is we are going to make use of this Piper clip.
So is to this get this feel that is a scorpion base we see this situation in where our keel over that
we just made in the previous lecture was ineffective.
So you can also take the piper clip documentation over here but I'll just take you through the coding
of this Bible clip in this lecture.
So first of all as always we have to import this module.
And in this case it should be by book clip.
So this is being imported.
Next I want to import the time because I want to this give the time to these key loggers ways to this
record the key.
So next is I want to clear the list.
This is list to ease because it will restore the keyboard content.
So if we just copy this from this clipboard Solis Jim that this notepad is a clipboard.
So it is going to the site create a list which will going to store this clipboard content which is basically
this field or the name password.
This is going to be injected or basically it will be stored in this list which is empty for now.
So now we have to now make a loop.
So I have already shown you how to make a loop in the basic section of a python.
And this is going to be the infinite loop.
So here we have to make use of now paperclip.
And it is going to be based.
So what we just did here.
So this method basically based is a meter.
So if the clipboard content is not empty.
So what we're going to do is we are going to see first this clipboard content if it is empty or not
in this case this method is going to be called and if it is not empty so we have to make the condition
for that that is with this and none.
So if it is not empty we are going to do something.
And that is to paste to the value.
So we are going to make the new fill here with the value and paperclip dot based so what it just did
here was where the sticking the clipboard content and if it is not empty then will just stick its value
and put it in this value field.
So that is the important part of where you can also print that.
But in this case I'm not going to do that.
So next thing is to take that value.
If value not in the least.
So I will literally before that this list is going to contain your clipboard content.
So it is clipboard content will be stored in this list which is empty for now.
So if the value is not in List that means we are going to make Mexico that the least value is not replicated.
If it is a store price then we're not going to this put that into the value.
Otherwise it is going to be append to the list.
That is the value.
So this is to this remove the duplication of the value in the list.
So this is statement over here.
So after that we have to now print that list.
So I'm going to print this list over here.
So next thing is to just make a use of the this time module and now the same time dart sleep.
So I want to this slip this for three Second every three second.
This killer will just generate these while true or basically this loop.
So we have now completed our code.
So what we just did over here was a simple payload that is going to first check if the keyboard are
a clip board is empty or not if it is not empty it is going to paste that value.
And if this is not the replication that this value is not already added in the list that means we are
going to add this because this is a unique value.
Will this add this to the list.
We are going to print that list and this is going to execute in every three seconds.
So this is a pretty much a simple payload over here.
And you could see that with this data here that is by would clip and paste and we're just taking for
the none.
And that is pretty much so.
If I just go over here and this time to execute this speller let's see if this works or not.
So I have to this a safe dispersed and I have already saved in the mandatory way.
You can also run the same code in the Eagle loader.
Ideally you can do in any I.D..
So now you could see I have executed and it has executed now.
So let's see if this works or not.
So first of all this inject this zone Doi this copy this.
Let's go over here.
Let's pasted right here.
Let's see in out by some then you could see right here on the original dot com let's see for this.
Here here.
Which is password.
This copy this list paste this in password file.
Let's see this here.
Has also been captured.
So this is the e-mail.
This is the password which has been captured by this Piper keep module which is done over here.
So this is pretty much a simple module but it is going to do much more work.
So it is going to capture the clipboard content and it is going to this capsule read and paste it in
our list.
And this is the output of the list.
So this is the output of the list in every tree.
Again it is going to execute and it is going to give us the result.
So it is going to this loop around in every three seconds.
And it is going to give us the result.
Again and again after three seconds if you want to the start minute the start minute from here.
And this will be your field for the user name.
And this is for the password.
So if this is a simple payload that is going to the site grab the content from the clipboard and you
can this do list of the things with this payload You can also make some modifications to the content
thus converting these by 5:00 to the bad file and you can inject to the victims muslin.
So see you in the next one.