This program up to here.
Now, according to the documentation of socket, this exit method will receive two things.
One of them is the object for the socket, and also the other one is the address for the address.
Okay, so here we are going to save them or restore them separately in separate variables.
So the first one which is going to be a socket object we are going to name it connection.
So connection is equal to listener dot exit.
And also we have the address.
So this both is equal to this thing.
So the first one is connection.
Connection is object for socket just like we had here not here into windows system.
Let me show you.
Here we have the socket and we created socket is equal to socket the socket.
And this is an object for socket okay.
So here in right in here that is the same Okay, so now we have this booth here.
Now I can use from address and also from connection here.
So the first one that I want to use is from this address.
So let's concatenate that with this one str of address.
Okay.
Perfect.
Now we have it will give me that gutter connection to this address.
Let's change it to from this okay.
So this is it.
And also we need to create a command okay connection.
Now it's time to use from this connection which is object for socket.
So let's do that.
I have the command.
Okay.
It is equal to.
We have the input function.
You know that.
What is input function.
Now here we will receive.
We will get the input from user.
The commands from user.
Okay, now after that, we need to send this to a victim.
So we have the connection okay.
Connection dot send command dot input okay.
So because there is a string then we need to encode this.
Now this will send this to the victim while the victim received that.
And then we need to, uh get it back okay.
The result.
So let's use result.
Result, uh, is going to be equal to we have connection okay.
Connection dot receive or ECV.
And let's give here 1024 and finally I want to print this print result okay.
And also because I want this to be continuously executed, so I want to put them all into a while loop.
So while.
This.
What happened I don't know.
While true.
Okay.
Now let's save this and let me go here.
I want to execute this, which is the listener.
And I want you to go to windows system.
Here I want to execute my reverse backdoor.
Okay.
Let's go back to Kali Linux right here.
You see, it is waiting for incoming connection.
Got a connection from this machine.
What is this machine?
This is, uh, Windows 10.
Okay, so let's use dir command here.
I'm going to hit enter.
Now you see that?
It gives me the result.
And as you see, we have.
And the result here.
Okay.
Uh, okay.
What do we have here?
Okay.
Here.
The ARP spoofing.
The spoof detector we have that we have reverse backdoor.
And what if I use, uh, what was that ipconfig.
IP config.
And as you see it is showing me these as well.
But these are all string.
Okay.
So no problem.
If we decode that maybe it will solve the result.
Let me use decode here.
Okay.
Dot decode right here.
While we are sending the command we need to encode this.
And while we're receiving it we need to decode it.
So again let's come back here.
I want to execute it once again.
It's waiting for network or incoming connection.
And let's go here use control C CLS and let's execute this.
Now if I came back here you see got a connection from this computer.
And let's use dir.
Now you see that.
It looks beautiful.
Okay IP con pic.
It is giving me the result.
And who am I?
Okay.
So perfect.
Now you just created your listener.
Okay.
Let's go.
Move for the next level.