WEBVTT

00:00.520 --> 00:08.080
Okay, now that we created our program called Backdoor on Windows and Listener on Kali Linux, it is

00:08.080 --> 00:11.600
time to learn the packaging part.

00:12.080 --> 00:14.200
So what is this packaging means?

00:14.840 --> 00:22.720
That means while we are executing our program from windows, the program needs to have for example,

00:22.720 --> 00:23.840
Python interpreter.

00:24.480 --> 00:33.200
So if you learn the packaging, you will be able to learn how to change your program to executable.

00:33.240 --> 00:33.840
Okay.

00:33.880 --> 00:38.400
For example, for windows you need to change your program to a dot exe file.

00:38.720 --> 00:42.920
So by double clicking on the program it will be executed.

00:42.920 --> 00:49.240
And after that you do need to have Python installed into your system.

00:49.800 --> 00:54.920
So now that we have our um, program okay.

00:55.720 --> 01:02.840
Uh, called um Python that is called the reverse back door.

01:02.880 --> 01:03.320
Okay.

01:03.360 --> 01:06.560
Reverse back door in a windows machine.

01:07.360 --> 01:13.800
So now that we have this program here, for example, I want to send this to another computer.

01:14.080 --> 01:18.040
And in that computer I don't have the Python installed.

01:18.040 --> 01:25.840
So this program will not, will not be able to be executed because the machine doesn't have Python interpreter.

01:26.240 --> 01:29.360
So the solution is to change this to a dot.

01:29.360 --> 01:33.160
Exe file or executable windows executable program.

01:33.760 --> 01:38.480
So to change that we have something called pyinstaller.

01:39.280 --> 01:48.920
So if you run pip install pyinstaller into your terminal you will be able to download and install this

01:49.120 --> 01:50.600
pi installer module.

01:50.600 --> 01:51.400
Okay.

01:51.440 --> 01:57.600
And by using this Pi installer we will be able to change our program to executable okay.

01:58.800 --> 02:04.050
Now let me come right here and open CMD here.

02:04.250 --> 02:04.610
Okay.

02:05.130 --> 02:05.970
Let's try it.

02:06.010 --> 02:07.410
CMD and hit enter.

02:07.770 --> 02:12.770
Here I am going to use Pip for this.

02:12.810 --> 02:16.410
We have Pi installer okay Pi installer.

02:16.850 --> 02:21.370
And then reverse back to dot Pi.

02:21.370 --> 02:26.770
And then I'm going to add another option that is called one file.

02:27.570 --> 02:28.490
Okay.

02:28.530 --> 02:30.050
So what is that.

02:30.090 --> 02:38.570
One file means one file means that in reverse factor we have a lot of file that we are using.

02:38.610 --> 02:40.410
Okay 2 or 3 files.

02:40.570 --> 02:44.490
And I want to package them all as one file.

02:44.530 --> 02:45.210
Okay.

02:45.250 --> 02:48.370
Now let's hit enter and wait a moment.

02:48.370 --> 02:50.690
So this will change the program.

02:50.730 --> 02:51.490
Okay.

02:51.530 --> 02:53.810
Change the program to an XZ file.

02:55.850 --> 02:59.250
Now here you see we have two folder.

02:59.290 --> 02:59.450
Okay.

02:59.490 --> 03:00.770
Two folder is created.

03:00.890 --> 03:02.810
And also reverse backdoor Factor.

03:02.810 --> 03:08.050
That's p e c is, uh, it has the configuration of this file.

03:08.570 --> 03:14.050
And let's see after this is completed.

03:14.250 --> 03:14.690
Okay.

03:14.730 --> 03:16.970
Right now it is not completed yet.

03:21.170 --> 03:21.450
Okay.

03:21.450 --> 03:28.890
Now this is completed building X from X 00. TOC completed successfully.

03:28.930 --> 03:29.730
Okay.

03:29.770 --> 03:34.450
Now let's go back here into right here.

03:34.490 --> 03:34.850
Okay.

03:34.890 --> 03:39.210
If I open this you see we have something.

03:39.890 --> 03:43.970
Its type is application reverse factor.

03:43.970 --> 03:45.930
And this is an exe file.

03:45.970 --> 03:46.450
Okay.

03:46.490 --> 03:52.970
Now if I go to properties you will see that we have a reverse factor application.

03:52.970 --> 03:55.010
And that is dot exe.

03:57.050 --> 03:58.810
And if I change.

04:01.450 --> 04:03.730
Now you see it is like this.

04:03.730 --> 04:07.650
Now by double clicking this, it will start executing.

04:07.690 --> 04:08.090
Okay.

04:08.570 --> 04:19.850
And right now this will be around in any, uh, any system that, uh, even the Python is not installed.

04:20.090 --> 04:26.170
So now let's try to come right here and run the program from here.

04:30.010 --> 04:30.970
I'm trying to.

04:33.490 --> 04:34.570
Set a document.

04:34.570 --> 04:35.530
Reverse factor.

04:35.570 --> 04:35.970
Okay.

04:36.770 --> 04:40.810
And let's use Python listener.py.

04:40.850 --> 04:43.010
Right now it is waiting for incoming connection.

04:43.290 --> 04:45.170
Let's come back to Windows Machine.

04:45.170 --> 04:48.370
By double clicking this it will start running.

04:48.610 --> 04:54.650
And right here you see we got a connection from this PC.

04:54.890 --> 04:58.410
So let's use Di or see if it is working.

04:58.450 --> 05:00.410
Of course it is working perfectly.

05:00.810 --> 05:05.290
And if I change the directory to go back now if I use Siri.

05:05.610 --> 05:07.450
You see that it is not working.

05:07.450 --> 05:19.730
That is somehow I think we have kind of problem with, uh, with Siri command.

05:19.770 --> 05:30.410
Okay, I added, or maybe I brought some change to this Siri command and that is the problem.

05:30.450 --> 05:31.170
Okay.

05:31.170 --> 05:35.250
But you see that it is working okay.

05:35.250 --> 05:37.010
And this is successfully installed.

05:37.010 --> 05:38.130
We don't need that anymore.

05:39.210 --> 05:41.090
And if I came back here.

05:43.130 --> 05:44.610
I open this again.

05:48.050 --> 05:48.330
Okay.

05:48.330 --> 05:52.610
Now you see my Siri command has some kind of problem.

05:52.610 --> 05:53.890
I will handle that.

05:54.330 --> 06:01.450
Uh, I'm sure yours is not going to have any kind of problem, because I was, uh, working with this

06:01.490 --> 06:03.170
script a lot of time.

06:03.170 --> 06:05.620
Maybe there is some kind of kind of problem with this.

06:05.740 --> 06:09.460
While I'm sending this, it is coming as a binary.

06:09.500 --> 06:10.260
It looks like.

06:10.820 --> 06:17.900
And by the way, we have the reverse backdoor dot a dot spec here, which is the configuration of the

06:17.900 --> 06:18.340
file.

06:19.460 --> 06:23.660
You see name is this one Debugfalse.

06:24.180 --> 06:27.020
And everything is here we need again.

06:27.340 --> 06:35.580
So now if your computer don't have any kind of Python installed or Python interpreter, and you send

06:35.620 --> 06:42.740
this reverse factor X into your system and try to run this and you will be able to execute this because

06:42.740 --> 06:46.780
it is a dot x file now, and you can use it very easily.

06:46.780 --> 06:50.100
And you will be able to connect using the listener.

06:50.100 --> 06:52.900
And you can do a lot of things with this.

06:52.940 --> 06:53.340
Okay.

06:54.180 --> 07:01.500
But still there is a lot of things that we can improve this and we will be able to do that in the next

07:01.660 --> 07:02.300
videos.

07:02.340 --> 07:02.820
Okay.

07:02.860 --> 07:05.700
So see you in the next lectures.
