Welcome to this lecture.
So in this lecture we'll see how to pack is your patent filing to the executive was in the Linux so
if you remember from the previous lecture we have been doing this packaging with the help of Windows
only.
So it is not relatively harder but it is assumed that it takes some more time than basically converting
with the windows.
Then in the linux because it has to have the wine configuration first in order to have that by installer
installed on the Linux because by installer is never made for the Linux it is only for the windows.
So we have to have this when configuration we do to support the virtual box type something like you
may say that it will have the same configuration which can execute you or you might say files are basically
you can install or install the libraries over there.
So what am I going to do is first of all let me show you the process of doing this in the windows and
we have been doing this for many time now.
So maybe this is the file main key lower is the file.
And let me just remove everything from here because we have been building this before too.
So first of all you have to install that by installer.
So in order to install the pipe installer you will simply say for us that is a python and Yum.
In order to use that P back is in the same stall and that is your by installer and this is the way to
install the base installer on the windows which is very easy but in the case of Linux it this is not
possible.
We have to first configure the wine in order to download the python executable.
And after that you have to only install the by installer.
So it is also quite easy after you install the python installer because the process is quite similar
to that Windows and Linux.
So let's go back to the Linux and let's see first of all you have to have these windows python version
in your Linux.
So first of all let's go over here in this python dot org Web site and list source for this download
and go to this window version and you can see that it has this latest byte Python 3 version and 2 version
but we just won that to virgin.
Let's click on that and go down over here which will destroy you that this has this installer MSA installer.
Let's click on that.
Let's save this MSA file and it lists Download Now let's wait for a moment.
Now it is downloaded let's open that file let's score to that download.
And this has this MSA file.
So first of all you have to have this one configuration in order to set up this MSA file.
So let me take you through the procedure.
So first of all you have to type white and after that I have to execute this AMSA file.
You can clearly see this python easy MSA file.
So we have this command.
That is the MSA X which is basically to execute this MSA file.
And after that we'll just give this less i.e. is argument and now we have to this copy this MSA file
the name of MSA file basically.
So let me just copy everything and allow the space to down here and lists best that we just hit enter
and it will.
So as these STABENOW It is saying that despite inversion and something information let's click next
and now Alice Klieg again the next because it will just replace my the previous version of Python and
it me click next day in
and it allows toll on your machine.
So first of all it has started to remove my previous files to allow copy the new file let me wait for
a moment to this source.
Now the information saying that by 10:00 has been installed and now let me just click finis.
Now Python has been installed on the one configuration so if you want to see this python file if you
see this is the MSA file that is for the Windows machine.
So this is not for the Kali machine so we are doing this that is installing the python version of the
window in the linux because this is done by this one configuration over here.
And now if we just say remember what I told you before I have told you that Pai installer is never made
for the Linux.
It is only for the window.
So for that case we are only installing these back is.
So now let's go to the folder where we have despite the new start.
So it will be in the home.
So let's go to the home and if you see we have this a bunch of files that start with this dot.
So this is the hidden files.
If you didn't see these files or a folder then you have to simply click over here and press.
That is so hidden files.
And you'll also get this door to widen fold over here which we just downloaded.
If you want to see that version of a fight and then go to the drive see and you will see here that is
where the python 27 and this you can see that we are running this in these linux.
You can see everything over here is same is we have done in the case of the windows.
You can see we have these libraries all installed over here.
You can also see the program that our program files that this is not the folder of the Linux.
This is not for a lot of the windows.
So this is Sam is saying that you create the virtual machine of windows inside the Linux.
So that is inside this door to win.
So now what you need to do is you have to now install that is by installer in this machine.
So let's do that.
So in order to install that by installer you have to go through these two wine installer.
So let's start over here.
Let me just open the terminal in this wine.
So we're inside this door to wine folder.
And here I want to first of all that is let me just go inside here because if we just remember what
we just did in the case of the windows packaging we just to use with the Python interpreter.
So Python interpreter is inside this python 27 and you can see it is right here which is saying Python
dot EMC.
So let me just open the terminal and let me just make it bigger.
So in the case of windows what do you normally do is you type python and you type DeSean and beep install
in the command that is by installer which we just did a minute before but in this case this is not a
valid in the linux because we are using this door to wine.
So first of all you have to use that wine command in order to perform this operation.
So first of all use a wine and now it is by then dot e XY so only python is also not valid because we
have to run the installer first.
That is by turned RDX is a application.
After that you can use the same command that we normally do in the case of window that these people
install and the name of the pack is here is by installer that is going to convert our python file into
the executable.
So let me hit into them and I think I have a little download the by installer so let's do one more time
and let's see if this works or not.
Again
OK it is not working.
So I think the version is not compatible so latest version is not compatible.
So what I can do now is download the next words and let's see if it has a problem with this version
or
I think the newer version has some problem.
So let's go for maybe two point seven points.
I'll just go with 14 because I have tested in there and it was working perfectly fine in that version
which was two point seven point fourteen so let's download this installer and listen install it.
So let's see.
Okay.
So it is Python M D 64 but I wont.
That is despite not that before file I'll just use this file which is the 30 towards an over here installer
to save this file and let's open that download directory again and less copy again this the name of
the file now lists open the terminal again here.
So we are doing the same process with the new file which is the python file again.
So that is with the same command.
Execute it.
So first of all is to be MSA execute.
And after that I am going to give this argument here and the name of the file should be bested which
is the python file let me hit enter again.
This sort of work now so I'll just say installed for all user and it will just give you another information
of the python.
I want to this install every package again.
So what I found with the newer version was it was unable to just give us the library installed properly
so I just I stole our rule back to the previous version which we have installed and so that is two point
seven point one four.
So I'll just say I have finished and I think it is working now so let's go now to the home directory
where we have that he done folder with the name of wine.
So let's go for the home and it is right here.
So we have to first install that pipe installer packages again.
So let's go to the right.
See Python 27.
So let's open the terminal over here.
So now we have to install these packages which is by installer.
So same is we have done in the case of the windows we have to install with the p packages.
But for now you just see here that by installer is not the package that is available in the Linux.
So first of all we have to use this one configuration and after that we have these Python dot EMC it
is inside this spy turned twenty seven fold.
You can see we are in the python 27 and this is the file that we need to execute which is our application
and let's go here again.
What is my.
This.
So after that what you need to do is you have to use the same command that we used to do in the case
of Windows.
So as I say installer and begins to learn.
So I believe is told by installer previously so it was so mi so massive that is the requirement is satisfied.
But in your case it was the system so ability installed by installer before.
So this is the way to install a buy install.
So next thing is to now convert that file python file into the executable.
So we have to back is now that python file.
So let's go to that file now.
So I want to go in the computer and in here I have this var w w w A.T.M. where we have the list of the
files.
So in the file let's say I want to just onboard this download dot before you file which was obviously
the collection where we just made the key logger and send that to the client.
But now I want to convert despite violin to the executable.
So let's see how we can do that.
So first of all I'll just open the terminal right here.
So this will be the terminal.
So I have already told you before that if you want to use any of these by installer which is the package
that is not available in Linux we have to do it with the line configuration.
So first of all as always we'll just type that wine and up to that list a check for the python buying
installer package.
So if you go over here the folder.
So let me just open new files and new window.
OK.
Not new window.
Let's square again and here you could see it is the home and no one here would be your location where
you have this file which is var w w w A.T.M. and we have this file which is downloadable.
That should be converted into executable.
But if you see the buying installer is installed in these dot rewind packages if you see that this dot
one is an invisible for you.
You have to first make it visible by just placing these so hidden files and after that go to this dot
line and it is inside here.
So that should be inside drive see and inside this python pack is and you should go to this is script.
And this idea you sort see the package that we just installed which is by installer dirty sexy.
So we have to use this bag is now which is inside this door wine drive C Python 27 in a script.
So let's type here now.
So I'll just say first of all we have to this go to the root.
And after that that is the one folder and the state and folder.
After that we go to the drapes C and after that we have this python 27 folder which has this is grips
with yes capital makes you.
This is the same folder that we have here which is the scripts.
And after that I will have one this by installer to be executed and it has this extension dart the AKC
which is obviously reporting that this is your windows while and we are using this because of this Wayne
configuration.
So next thing what do you want to do is we want to use this by installer.
Same as we did in the case of a Windows.
So after you type installer you usually thus type the name of a file you want to convert to.
So in this case we want to convert that is download not be right.
So you can clearly see where in the same folder that this download should be why it is so we can simply
write your download that we will file because we had in here that is in the same folder.
So after that you want to give that is no.
1 file securely one file because we want to compress are we want to get the packages into the one file
and no cancel.
So this no console is because when this executable starts running we don't want the common problem to
be running with it.
So we want only this download that BYU file convert to the download DMC and when declined to run that
download Dirty Sexy we don't want console to be running with it.
So no console.
So let's hit inter over here because we have now successfully get this configuration to convert our
python file into the executable list it into and use it now it will be is and it will give you this
packaging information right here we have this folder created.
So let it and do its stocks first.
And now it to this pack is everything.
And it has said that building EMC completed successfully.
Let's go to this disk Fuller over here you can see we have this download dot EMC.
So now we have successfully completed in the execution of converting the python filing to the executable
is from the Linux.
It was done with this one configuration and basically we have something like a virtual box that installed
the python version of Windows by installer we have the windows because by install is not available in
the case of the Linux.
So we have to make this one configuration to do it.
So I had taken you through the installation processor of Python and also the PI installer.
So this will be there for this leg so we saw how we can convert the python file into the exit file in
the Linux in this lecture.
So in the next leg so will learn more about the packaging of this payload soon the next one.