Hello and welcome back.
In this section, we are going to learn how to crack GUI-based
crackme.
That means crackme
that has got a graphical user interface.
So this is the project we are going to try next day.
This copy from the resource section that I provided for you.
Do not download from here.
The other program you need is this one, Resource Hacker.
Get this also from the resource section that I provided for you.
Do not download from here in case in the future this website doesn't exist. So we need to use this to perform
one of the challenges in the GUI-based crackme.
So go and install this, and then we will continue.
So after downloading your project for this section, which is 03 Crackme, this is what it looks
like.
So you find two files there: the actual crackme itself and the readme.
So let's run it first and see what it does.
So all it does is show you a window, ask you to enter login and serial, and then the button is
grayed out, as you can see.
So even if you enter any fake login and any wrong serial number, you still cannot click on this button
here.
So this is one of the first challenges. You need to read the readme file.
It will tell you what are the challenges you need to solve.
So the first challenge is to enable the register button, which we'll be doing in this video.
And then the next video will be on the rest of the challenges.
So let's get started.
First, before you do this, you must first check this program.
Is it 32-bit or 64-bit?
So we open our Detect It Easy.
And we use this to open the crackme, which we have just downloaded to the desktop.
And then check to see what type of -.
So in this case, it is a 32-bit -.
So we must use—we must use -32 dbg.
So we go here and open our -32 dbg.
Oh, sorry.
In this case, we don't start with dbg.
We have to enable the register button.
So to enable the register button, we need to use Resource Hacker.
Remember this register button is grayed out.
We have to enable this.
So let's open Resource Hacker wherever you have downloaded it for your case.
For my case, my Resource Hacker is in the Utilities folder.
So this is what it looks like when you run it.
So we use the Resource Hacker to open this form—this program.
So go to—sorry.
Click on this one, File > Open.
Go to your desktop.
Look for crackme and open the .exe file.
Now we want to look for this register button.
So the good place to start is String Table.
So you click on String Table and then look for the Search menu—find with the Find menu.
So click on Find, and you want to look for this string "Register."
Register.
Leave the Find type as Text and then click on Find.
And immediately you find there is a result here.
So this is the resource for the button.
If you scroll up, you will see this is a button.
The button.
In this case, the class is button.
The object is button1, and then here the caption is "Register."
The enable is set to false, so that's why it is grayed out.
So now we can force it to become true so that it will become visible.
So to do that, we just need to change this from false
to true.
And then click on this button here.
Now before you do anything, I would advise you to make a copy of this.
That means take this, make a copy as a backup in case something goes wrong and you still have a copy.
All right. So now you can click on this to compile the new script for this resource.
Click on this. So it's compile succeeded.
Now you can save it.
So when you save it, it will make a copy of this original file and then alter it directly.
So it will alter this .exe file to enable the button.
So watch what happens when I save.
So it makes a copy of the original file and calls it original.exe.
And now it has modified this .exe by itself directly.
So now if we close this and reopen it, we can see the button "Register" is enabled.
So this concludes this first challenge.
This is how you can enable grayed-out buttons.
This is one of the ways using a Resource Hacker. Resource Hacker is a program that can look at the
resources used for the program.
Resources are those like design configurations for the window size, the text box size, the caption
size, and other components.
So button is one of the components that has got configuration set up inside the resource.
So Resource Hacker allows you to view that resource and hack it and change it to whatever settings you
require.
That's all for this video.
Thank you for watching.