WEBVTT

00:00.120 --> 00:01.720
This program up to here.

00:02.040 --> 00:08.320
Now, according to the documentation of socket, this exit method will receive two things.

00:08.320 --> 00:14.040
One of them is the object for the socket, and also the other one is the address for the address.

00:14.080 --> 00:23.360
Okay, so here we are going to save them or restore them separately in separate variables.

00:23.360 --> 00:28.840
So the first one which is going to be a socket object we are going to name it connection.

00:28.840 --> 00:34.640
So connection is equal to listener dot exit.

00:34.640 --> 00:36.840
And also we have the address.

00:37.200 --> 00:39.040
So this both is equal to this thing.

00:39.040 --> 00:40.480
So the first one is connection.

00:40.480 --> 00:48.200
Connection is object for socket just like we had here not here into windows system.

00:48.200 --> 00:49.120
Let me show you.

00:51.040 --> 00:55.360
Here we have the socket and we created socket is equal to socket the socket.

00:55.840 --> 00:58.520
And this is an object for socket okay.

00:59.080 --> 01:06.250
So here in right in here that is the same Okay, so now we have this booth here.

01:06.850 --> 01:11.130
Now I can use from address and also from connection here.

01:11.250 --> 01:16.010
So the first one that I want to use is from this address.

01:16.010 --> 01:22.170
So let's concatenate that with this one str of address.

01:24.330 --> 01:24.690
Okay.

01:24.690 --> 01:25.370
Perfect.

01:25.570 --> 01:31.770
Now we have it will give me that gutter connection to this address.

01:31.930 --> 01:36.250
Let's change it to from this okay.

01:36.850 --> 01:39.610
So this is it.

01:39.610 --> 01:45.370
And also we need to create a command okay connection.

01:45.410 --> 01:50.290
Now it's time to use from this connection which is object for socket.

01:50.490 --> 01:52.050
So let's do that.

01:52.570 --> 01:53.810
I have the command.

01:53.850 --> 01:54.050
Okay.

01:54.090 --> 01:55.130
It is equal to.

01:55.650 --> 01:57.570
We have the input function.

01:57.570 --> 01:58.090
You know that.

01:58.130 --> 01:59.650
What is input function.

02:00.050 --> 02:02.690
Now here we will receive.

02:02.730 --> 02:05.290
We will get the input from user.

02:05.330 --> 02:07.420
The commands from user.

02:07.460 --> 02:12.100
Okay, now after that, we need to send this to a victim.

02:12.100 --> 02:15.780
So we have the connection okay.

02:15.820 --> 02:23.580
Connection dot send command dot input okay.

02:24.540 --> 02:28.460
So because there is a string then we need to encode this.

02:28.860 --> 02:33.860
Now this will send this to the victim while the victim received that.

02:34.380 --> 02:39.220
And then we need to, uh get it back okay.

02:39.260 --> 02:40.140
The result.

02:40.380 --> 02:42.780
So let's use result.

02:44.860 --> 02:51.460
Result, uh, is going to be equal to we have connection okay.

02:52.420 --> 02:56.820
Connection dot receive or ECV.

02:56.820 --> 03:06.260
And let's give here 1024 and finally I want to print this print result okay.

03:06.740 --> 03:17.350
And also because I want this to be continuously executed, so I want to put them all into a while loop.

03:17.710 --> 03:20.350
So while.

03:23.670 --> 03:24.070
This.

03:28.150 --> 03:29.710
What happened I don't know.

03:34.150 --> 03:34.870
While true.

03:42.910 --> 03:43.910
Okay.

03:43.910 --> 03:48.510
Now let's save this and let me go here.

03:49.430 --> 03:52.310
I want to execute this, which is the listener.

03:52.630 --> 03:57.110
And I want you to go to windows system.

03:57.550 --> 04:01.430
Here I want to execute my reverse backdoor.

04:02.030 --> 04:02.510
Okay.

04:04.590 --> 04:07.870
Let's go back to Kali Linux right here.

04:08.070 --> 04:10.470
You see, it is waiting for incoming connection.

04:10.950 --> 04:13.290
Got a connection from this machine.

04:13.410 --> 04:14.370
What is this machine?

04:14.490 --> 04:17.850
This is, uh, Windows 10.

04:17.890 --> 04:22.250
Okay, so let's use dir command here.

04:22.570 --> 04:24.290
I'm going to hit enter.

04:24.330 --> 04:25.410
Now you see that?

04:25.530 --> 04:27.090
It gives me the result.

04:27.490 --> 04:29.850
And as you see, we have.

04:31.570 --> 04:33.090
And the result here.

04:33.130 --> 04:33.530
Okay.

04:34.610 --> 04:38.850
Uh, okay.

04:38.850 --> 04:39.650
What do we have here?

04:39.650 --> 04:39.970
Okay.

04:39.970 --> 04:40.330
Here.

04:40.570 --> 04:41.610
The ARP spoofing.

04:41.650 --> 04:46.930
The spoof detector we have that we have reverse backdoor.

04:47.290 --> 04:51.770
And what if I use, uh, what was that ipconfig.

04:55.810 --> 04:57.370
IP config.

04:58.170 --> 05:02.810
And as you see it is showing me these as well.

05:03.490 --> 05:05.330
But these are all string.

05:05.370 --> 05:05.850
Okay.

05:07.250 --> 05:09.650
So no problem.

05:09.690 --> 05:12.730
If we decode that maybe it will solve the result.

05:15.930 --> 05:17.420
Let me use decode here.

05:17.460 --> 05:17.860
Okay.

05:18.500 --> 05:23.180
Dot decode right here.

05:23.180 --> 05:25.780
While we are sending the command we need to encode this.

05:25.780 --> 05:28.180
And while we're receiving it we need to decode it.

05:28.580 --> 05:31.660
So again let's come back here.

05:31.740 --> 05:34.340
I want to execute it once again.

05:34.380 --> 05:37.380
It's waiting for network or incoming connection.

05:37.860 --> 05:46.020
And let's go here use control C CLS and let's execute this.

05:47.060 --> 05:51.180
Now if I came back here you see got a connection from this computer.

05:51.900 --> 05:54.180
And let's use dir.

05:54.220 --> 05:55.820
Now you see that.

05:58.140 --> 05:59.580
It looks beautiful.

05:59.620 --> 06:03.740
Okay IP con pic.

06:04.460 --> 06:06.020
It is giving me the result.

06:06.340 --> 06:08.580
And who am I?

06:10.380 --> 06:10.780
Okay.

06:11.100 --> 06:11.860
So perfect.

06:11.860 --> 06:15.540
Now you just created your listener.

06:15.580 --> 06:15.940
Okay.

06:16.100 --> 06:17.300
Let's go.

06:17.340 --> 06:19.420
Move for the next level.
