Okay, now that we created our program called Backdoor on Windows and Listener on Kali Linux, it is
time to learn the packaging part.
So what is this packaging means?
That means while we are executing our program from windows, the program needs to have for example,
Python interpreter.
So if you learn the packaging, you will be able to learn how to change your program to executable.
Okay.
For example, for windows you need to change your program to a dot exe file.
So by double clicking on the program it will be executed.
And after that you do need to have Python installed into your system.
So now that we have our um, program okay.
Uh, called um Python that is called the reverse back door.
Okay.
Reverse back door in a windows machine.
So now that we have this program here, for example, I want to send this to another computer.
And in that computer I don't have the Python installed.
So this program will not, will not be able to be executed because the machine doesn't have Python interpreter.
So the solution is to change this to a dot.
Exe file or executable windows executable program.
So to change that we have something called pyinstaller.
So if you run pip install pyinstaller into your terminal you will be able to download and install this
pi installer module.
Okay.
And by using this Pi installer we will be able to change our program to executable okay.
Now let me come right here and open CMD here.
Okay.
Let's try it.
CMD and hit enter.
Here I am going to use Pip for this.
We have Pi installer okay Pi installer.
And then reverse back to dot Pi.
And then I'm going to add another option that is called one file.
Okay.
So what is that.
One file means one file means that in reverse factor we have a lot of file that we are using.
Okay 2 or 3 files.
And I want to package them all as one file.
Okay.
Now let's hit enter and wait a moment.
So this will change the program.
Okay.
Change the program to an XZ file.
Now here you see we have two folder.
Okay.
Two folder is created.
And also reverse backdoor Factor.
That's p e c is, uh, it has the configuration of this file.
And let's see after this is completed.
Okay.
Right now it is not completed yet.
Okay.
Now this is completed building X from X 00. TOC completed successfully.
Okay.
Now let's go back here into right here.
Okay.
If I open this you see we have something.
Its type is application reverse factor.
And this is an exe file.
Okay.
Now if I go to properties you will see that we have a reverse factor application.
And that is dot exe.
And if I change.
Now you see it is like this.
Now by double clicking this, it will start executing.
Okay.
And right now this will be around in any, uh, any system that, uh, even the Python is not installed.
So now let's try to come right here and run the program from here.
I'm trying to.
Set a document.
Reverse factor.
Okay.
And let's use Python listener.py.
Right now it is waiting for incoming connection.
Let's come back to Windows Machine.
By double clicking this it will start running.
And right here you see we got a connection from this PC.
So let's use Di or see if it is working.
Of course it is working perfectly.
And if I change the directory to go back now if I use Siri.
You see that it is not working.
That is somehow I think we have kind of problem with, uh, with Siri command.
Okay, I added, or maybe I brought some change to this Siri command and that is the problem.
Okay.
But you see that it is working okay.
And this is successfully installed.
We don't need that anymore.
And if I came back here.
I open this again.
Okay.
Now you see my Siri command has some kind of problem.
I will handle that.
Uh, I'm sure yours is not going to have any kind of problem, because I was, uh, working with this
script a lot of time.
Maybe there is some kind of kind of problem with this.
While I'm sending this, it is coming as a binary.
It looks like.
And by the way, we have the reverse backdoor dot a dot spec here, which is the configuration of the
file.
You see name is this one Debugfalse.
And everything is here we need again.
So now if your computer don't have any kind of Python installed or Python interpreter, and you send
this reverse factor X into your system and try to run this and you will be able to execute this because
it is a dot x file now, and you can use it very easily.
And you will be able to connect using the listener.
And you can do a lot of things with this.
Okay.
But still there is a lot of things that we can improve this and we will be able to do that in the next
videos.
Okay.
So see you in the next lectures.