Hello and welcome back.
In this video, I'm going to show you how to run Windows programs in Linux.
I've taken a copy of the SimpleSerial and put it in this folder inside my home directory.
This was the crackme we did in the previous lesson.
Now I'm going to try to run it in Kali.
I right-click here.
Open a new terminal.
Note that this directory is inside home.
You can get to this directory by going to home and then double-clicking this one.
That's how I got into this directory.
So now if I list the contents, I will see the SimpleSerial.exe there.
I'm going to rename it to remove the space so that it's easier to type.
So in Linux, this is how you rename files.
You use the mv command.
mv, file name, followed by new file name, and then hit enter.
The single quote is necessary because of the space.
Now if I list again, if I list again, you see the file has been renamed.
I'm going to try to run it to see if it's able to run.
And you get an error, format
error.
Why?
Because it is not a Linux file.
You can check it out by using a program called file. Type file and then type the name of the file you
want to check, and it will tell you that it is a PE executable, meaning Windows GUI program.
It won't say GUI here.
So that is why it can't run it.
So how do we
run this program in Linux if you wanted to run it anyway? We can use a package called Wine.
So let me clear the screen first
using the clear command. To use Wine,
you type the wine command, followed by the name of the executable that you want to execute, and you
hit enter.
But you will see that Wine is not installed by default.
In
first, I will try this.
sudo dpkg --add-architecture
--add-architecture
i386.
And then sudo apt-get
update.
Now it has updated.
I will now type sudo apt-get
install wine
32.
And now
yes.
It will take some time to install.
Now that it is finished installing, we can test it out.
Clear the screen and type wine
SimpleSerial.
Hit
enter.
And you see it pops up the window, and just key in anything.
Click on check, and it says, "Sorry, wrong key."
So this is how you can run Windows programs in Linux.
Thank you for watching.
I'll see you in the next one.