Welcome to this Celexa.
So we have already made this simple key logo in the previous lecture which was able to strike every
keyboard that was pressed on the system.
So next thing what you can do is instead of just reporting over here so we need on this it was going
to just print that Kellogg's that was placed on the same gland.
So instead of just doing that what you can do here is we can send every key that is displaced into the
e-mail account.
So we'll just do that over here.
So before that we can see that we haven't made that send a mail method.
So let's make that send mail method over here.
Let me just make over here.
So I'll just say send these two e-mail and that you send e-mail method and if you know that the first
method that is going to be the cell for method which is denoting although it is just pointing to the
content object we want to send the email to this e-mail and the next one I want to send is password
because we need this e-mail and password to connect and the message that is to be sent to that e-mail
account.
So the message here will be the outer key locks that is placed on the client machine.
So let's make the software first as always we have seen how to send the email in the previous Lexis
or this would not be any problem for you.
Before that we have to import some of the library and that is should we assume DTP library which is
going to make us call to the server of a G.M. or any mail basically.
So in this case we are only using the e-mail which is only one example you can just get any of the e-mails
or.
Over here with your sport known.
And I'm just going to use this.
Yes I'm typing module are basically this empty class.
And the first argument that this assembly be constructor is going to take is your guess empty be host.
And this is empty your host is obviously our G.M..
So this is e-mail dot com as him to be dot G.M. dot com so make sure it is correctly written.
And the next is the port which is is listening to you can also see that that is it is giving us some
information about this argument.
And the first one here was a host.
And the second one who will be the port and the port here is 587.
And this is this harbor of the G.M. So next thing is to this start this server and we have this matter
that is you start their lists.
So let's start this first.
And let's log in now and logging should be done with this e-mail and the password.
So as a symbol and a password is the logging analyst sent this email that is with this and the masses
are the same.
Mm.
Will this you send mm in here that is saying that the information here is not the e-mail and a password.
It is from a address.
And basically here will just say e-mail.
So we darn don't know anything about the claim.
That means we'll just give the e-mail that is from address to it.
So this is important because this is the to address and to address here is e-mail because we want to
send this to the e-mail and e-mail is our legit or genuine e-mail and this can be anything so I have
only written the e-mail you can send something like OK you can just give information of maybe declined.
So this is sent from the client or something and this should be legit or genuine because this is the
e-mail which is going to receive these ski logs.
So instead of playing down this racist e-mail and the hard one over here will be your password our message
is not a password it will be masses that is about the key log or it is generally sent to this sends
e-mail method so nesting after you send.
We have to quit this.
So let's quit.
So we have made this send a G.M. meter now so next thing is to call these send e-mail.
So instead of just sprinting over here which we did in the previous LEXA WE WANT TO SEND THESE TWO here.
So it is sends e-mail so before that if we just remember this is the method off of this class.
So if you want to call the method of the class it is done by these self keyword first and the send email
method if you do something like send email only this ends e-mail then this is not going to work because
this is not the funds and this is the method of this class.
So that's what we call with this cell for keyword over here.
So after users pass the decimal you sort see that this sends e-mail is going to take some arguments
over here saying that this e-mail password and masses.
So I'm just going to send that is for our e-mail and cell for dart and that should be the password.
And the next thing is a cell for da Kellogg's.
So in this case it should be Kellogg's.
That is we are going to send over here so listen that it would be self thought Kellogg's because instead
of masses it should be Kellogg's.
And if we see here that we are getting either saying that e-mail is not defined or baked into there
is no difference it is showing no type exception.
It is basically null.
It has not been defined or given any value over here.
So that is true because if you go to the you need method here is only attribute that is of the class.
So just remember that this cell determines that this is the attribute this is the method of this class.
So we were just referencing this e-mail in a password is that of the class.
But obviously we haven't defined anything over here so let's define that.
So all this is self dot e-mail first and this e-mail should be something and self da password should
be also something over here.
Let me say empty for now.
So you could doubt sit down now.
It has us removed us the eater that is the self wrote e-mail and self doubt password is obviously dear
over here.
But if you see here we haven't initialize it with anything e-mail and password.
So what you can do here is while just making this key logger I have told you before that while making
the object the first method that is going to be called is this you need the method.
So this is also called the initialized.
That means you can initialize any variable over here.
So I want to initialize.
That is the e-mail.
And next thing I want to initialize is the password.
So why did why do you pause to while making this object of the key logger will be over here.
So this initialized with this e-mail that is sent to this constructor and the password sent over here
so you could go down again and it is also saying you know that this barometer that is e-mail and pattern
meter password is unfilled which is obviously true because we haven't seen anything.
And I have told you before and couple of time before also and in object oriented links as to the first
method that is going to be called is this constructor and this sale method or this self is first keyboard
that is going to be the pushed argument.
And after that there is other poses no argument that should be initialize so selves to not be initialized
because this is obviously this denoting to this object but anything other than that should be given
is the argument from here.
So I want to the space now email and password over here and that should be same e-mail that we just
usually used a couple of minutes before.
And let me just state that e-mail makes you.
It is correct it's e-mail.
You have to also give the correct password over here.
And I have to allude.
Couple of time before that if should be legit.
So make sure that you make separate account for these testing barcodes.
So I have the secret or the e-mail and the password in order to test this key logger and what we have
done here was basically we just completed in order to so.
Lauren this ski logo and it will send this key logger logs back to our e-mail and the next thing what
do you want to do is let me show you that this list secured apps or basically let's see that these maybe.
OK.
Has no nor any links.
So let me say less sick your it is less secure apps as this are apps.
So let's go over here.
So this should be open or on.
Otherwise it is not going to work.
So let me just open my e-mail account again because there is going to be the masses of idea.
So this is my email account and now let's run this in court.
So we have this executed here that is the sends e-mail.
And let's see if you are just making the call to this sends email over here with the e-mail and with
the password and the logs and we have seen that to this e-mail and basically we have the here and the
password and e-mail is right here.
So this sort of work fine.
So let's test this now.
So first of all let me just say Iran which is this man key logger and I want to run this main key logger
and let me just stop and read on.
And it has been now working endless open here.
That is e-mail.
So we have all that in every five seconds that has sent that has to send.
So let's make it five second to maybe one second or be basically to the one minute because we don't
want every information to be printed continuously in that five second.
So I'll just say it should be 60 seconds.
So let's rerun it again and stop and read on.
Now it is running so Okay let's read on again
and it is running.
So let's test this now.
So here in the maybe in the same link as open a new window to type something.
So here as I said this is uh test or I let's open this and this to go over here and type the Facebook
dot com and noble here.
Let me just open this Facebook and at this time some e-mails here maybe such scene need or some informations.
And let's see if this is captured or not.
Let's go back to our e-mail where it will just get the information.
So we have just said that time now to be the one minute and it is going to give us all the information
within that of one minute to this capture and it will just sleep for one minute and in every one minute
it is going to capture all the key logs and send it over here.
So let's see if this is sending or not.
So let's go here over here in the first one and it is empty because this was for the maybe the one in
space.
Let's go over here.
It is also empty.
Let's go over here.
It is saying that it is a key dot backspace obviously and it is also nothing over here.
So what might have happened is maybe it is waiting for.
Let me just rephrase it let's see if we this capsule all of these clocks or not.
No it has not sent us it has sent some of these.
That is the key locks which is saying keyboard back in spaces maybe in the spam or something.
No no it won't be in a spam because this was the largest cell.
So let's go back in and run it again one more time.
Let's see what was the problem over here.
Let's stop and read on you can also simply before the sending that to the email you can also print these
key logs first.
I'll just say print the clocks first and then noodles and this ring on this salmon back.
The key logger again and less uh delete everything over here.
Let's read on how it is running.
Let's type some baggage spaces.
Okay.
He's not giving any information.
That means so.
It is.
It may be not running properly or it is waiting OK it is waiting for one minute to give the information.
So let's send this to maybe 10 seconds.
Let's make this to 10 seconds less.
Read on this
and let's go over here and let's type something it's a test.
Let's wait for some moment and let's see if we can this get this or not
let's go to our no pi folks and let's see we have got some of these messages again and everything here
is again the bag spaces everything that it does we got over here.
So let's go back and I think we might have some problem over here.
So it is us capturing that is the key and less so less make changes to the core.
So let me just stop the execution
and there was obviously that he would interrupt.
So here it is just so giving us information within that 10 seconds.
So this maybe in the 10 seconds.
So everything is perfect over here but it is not kept setting the keys that we just send.
So basically there might be some masses either way.
So we sent that key logs which is the key that we just get over here and that is the current key.
So instead of the sending to e-mail let's try to first print the key logs.
It was working perfectly in the previous so but now let's see we've just thrown it over here and let's
go over here.
Endless test this out.
So this is uh test less to wait for 10 seconds.
Let's see if we can.
OK.
This is a test we can see over here and this was printed OK.
That means we can just have to wait and that will be sent to this e-mail.
So we have to wait for the 10 seconds because we have just got here.
That is every 10 seconds we'll just capture that key and we'll just send that to the e-mail.
So let's stop this first and now let me just read on again.
Let me just say run this man key logger will just run this.
Let's go over here.
Let me just run one new terminal and I'll just stay up here.
This is a test and we'll just wait for a moment first of all let's see if here we also get captured
or not.
So first of all just wait over here to see if it had OK.
It has captured.
This is this.
Let's go to our Firefox and let's see if you OK.
We have here.
This is a test so you can also see we can capture everything over here so let me just type in here.
That is a Facebook dot com again.
Facebook dot com and analysts lists go again to the Facebook dot com let's say something that is this
G.M. dot com and let's wait for some time.
Let's see if this has been captured over the past some or not so obviously it has given this face.
And obviously there was this kid out saved and obviously which was basically for this one.
And we just get the G.M. dot com over here.
Let's see if this was again sent to that e-mail or not.
Let's go over here and it has sent that right here so you can see we have the G.M. that was this capsule.
You can also capture the password.
So this rather quick lecture on how to do the same.
That the key logger on the key logs back to the G.M. So in the next leg so we'll just some modify some
of this court because we have to now insert the download feature to our payload.
So assuming the next one.