Now the back door that we created uses a reverse payload.
So like I said before it does not open a port and the target computer it actually connects from the
target's computer to our computer.
And by doing that it will bypass firewalls and it'll look less suspicious.
So for this to work we need to open a port in our computer so that the back door can connect from the
target computer to us on that port.
So if you remember when I created the backdoor I said the port to 80 80.
So I need to open that port in my Callimachi so that when the target person executes the back door the
back door can connect back to me on port 80 80.
So I'm just going to write the name of the payload that we used because that's very important when you're
listening for incoming connections.
So we use a payload that's written in go.
And that was amateur Peter Rev TTP S which is a reverse TTP as payload.
Now this is not a command.
I'm just going to write it in here so just that you keep this in mind and we use port 80 80 for the
reverse connection.
So these are the most important things to keep in mind when listening for incoming connections.
So I'm going to split the screen
and I'm going to listen for incoming connections in here and to do that I'm going to use the mute exploit
framework now to run me to blow it.
All you have to do is just run MSF Konsole now meet us ploys.
Framework is a huge framework for penetration testing.
So Mr. Patel a backdoor or the interpreter payload that will create is for us is actually programmed
by the people who made us Lloyd.
That's why we're using meter's ploy to listen for incoming connections.
So Bill evasion actually uses meter's ploy to generate the backdoor that we chose in the previous video
so to listen for incoming connections we're going to use a module Ameet exploit known as Floyd.
As I said is a huge framework and it has a lot of modules.
So the module that we're interested in is a module that allows us to listen for incoming connections
from amateur Peter payload to use that module.
We're going to do use to use a module and then we're going to specify the module name and the module
name is exploit multiday handler.
OK so the command we're using is used to specify the module that we want to use and we're using a module
called exploit multi handler that allows us to listen for incoming connections.
I'm going to hit enter and I was already in that module so you can see that nothing changed for me but
for you you should navigate to that Madill and I'm going to do show options to see the options that
I can set for this module.
And you can see that you can specify different options for as the most important thing that you want
to specify is the payload.
So you can see and hear for me it's set to Windows.
Mr. Peter.
Reverse TCAP And if you remember what we used we used amateur Preter reverse Hashd TTP as not DCP.
So you want to change this.
The first part is fine because our target is going to be Windows but you want to change the reverse
TCAP to reverse hasty S and you can change that exactly the same way that we did with Bill evasion.
So you type in set you put the option name that you want to change and we want to change the option
for the payload.
So we're going to say payload and we're going to send that to Windows Mattel praeter reverse Hastey
CPS this time.
OK so we're doing set to set an option.
We're setting the payload to Windows macerator very safe shitty piece.
Now this payload should correspond to the payload that you chose in the back door.
So in the back door we used Mr. Peter vs. shitty POS.
That's why in here we use in reverse disappears as well.
If you chose the reverse TTP then set this to revert to ETP.
If you use reverse ECP then set this reverse TZP and so on.
So I'm going to hit enter for this.
And that's going to do it for me.
And if I do show options now
you'll see the payload changed to Windows.
Mr. Patel reverse his shit.
Yes.
Now the same concept applies for all the other options.
So you want to set the host to our IP address and you can see that this is already set to the right
one.
So if it was wrong for you.
All you have to do is just do set a host and put your IP address so you can get the IP address used
in ifconfig like I showed you in the previous lecture.
So for me it's 10 20 40 to 13.
And again this is the same IP that I used when I created my doctor.
And same goes for the port you want to set the same port.
So we're going to do set Bellport to 80 80 because that's the part that we used when we generated the
back door.
So again the main idea with this is you want to set the payload the host and the port to exactly the
same options that you chose when you created the backdoor.
Once done with that we're going to do show options one more time.
And you'll see that I have my payload set properly.
When does Mr. Puteri vs. the CPS.
I have my Ehle host and I have my airport and all of that is done properly.
So all we have to do now is just do exploit.
And now Mr. Lloyd is waiting for connections as you can see on port 80 80.
And on my IP address which is 10 2014 to 13.
So now if anybody opens the back door that we created in the previous lecture because the reverse back
door the back door will try to connect to the IP that we set when we created the backdoor which was
86 10:24 22:13.
And it will try to connect on port 80 80.
It's going to come to this computer and this computer is already waiting for that connection from this
multi handler module.
So the connection will be established and then I'll be able to control the target computer and I'll
basically Hockett and have full control over it.
Now the next sector I'll show you a very basic way to deliver the backdoor to the target computer and
how to test the back door and make sure that it works properly.