In this lesson we are going to learn how to correct this hero key and these are the steps of Step 1.
Search for the strings for back message then put a breakpoint on the back message and that message is
a message which tells you that you have entered a wrong zero key.
After you have put a breakpoint the program will pass.
At the break point for the better message you then search for where this hero key isn't being compared
with the one which the user entered then you put a new breakpoint on the comparison and thereafter you
extract this hero key.
So let's get started.
Open your correct me file using the SCC for DB e.g. and now you at the studying.
Let's run to the entry point by pressing f 9 or clicking on the Iran button.
And you are now at the entry point next.
Just click on f 9 again and you will see the window showing into any wrong 0 key uncheck and you will
show you the year that message.
So notice and that message consists of the caption in the string or the message so in order to possible
grim we need to find the correct breakpoint to put at a moment.
We are not able to analyze the code because the program did not pass for us to analyze.
It is running all the time so one way to find the breakpoint to put is to look for the strings in the
back message.
So just make sure you are in the user mode module rightly and then search for current module string
references and he will perform all the search and then a result here look for the string which is showing
up in the back message.
In this case wrong zero key.
Try again so publicly on this to go to the instruction and you can see it is over here.
Then the string is being used in a message box.
And this is the message box showing us a better message and all of these are the preparation for the
message box to be shown.
And if we look further you will find us another message box which is showing us a good message.
It says Congress rather than so it is this good message.
Which one to be shown so if you think and analyze it carefully there should be some kind of a comparison
being made somewhere on top within sites wish message box is to be shown and that comparison is a comparison
between the low key that the user enters and the correct key so if he were to screw up further we should
be able to look to look for something interesting and over here you will find something interesting
here.
OK.
But before that let us put a break point.
Probably over here just before the good message is being shown.
As you can see this gem jumps over the good message and goes to show you the bad message.
So this is a good place to put a break point.
So let us restart the program
and enter the wrong zero key.
Click on Jack any pauses at the jump.
And so the junk will be taken.
If you were to read f it you will continue to jump and show you that message.
Let's press f it just to check it out
in jumps.
What a good message.
And now it is in the back message session.
He continued to press F it
and that message is being shown here.
Wrong zero key.
Try again.
OK.
So now let us analyze further high up to see if we can put a breakpoint foot up just before the decision
is being made to jump or not to jump obviously over here.
It is testing the value of x to see whether or not can.
So if something is setting the value in the X or What is setting it has more than see so you keep screwing
up.
You will find something interesting over here get dialogue item tax so this get ILO data item tax is
a Windows function to extract the tax that is being kicked in by the user.
So this appears to be a good place to put a breakpoint and we can remove this one.
Now we reran the program again.
Now we're here.
Key in the wrong zero key.
Click on check.
And we break just as we anticipated and they get Della item tax.
So at this point here is a bar to a string.
The key is to use enters.
So let's press F it
and if you can see something is happening here.
It is moving a string into easy X and now it has a loader.
The tax then the user entered into e x.
So as you can see X has got the string that the user entered and easy access or something else.
Let's move one press F it and now it is trying to compare it is trying to compare between ESEA and e
s to see that idea the same.
So this is where the decision is going to be made whether or not the user has entered the correct 0
key.
So as you can guess this must be the zero g.
Correct zero G.
So you can right click on this copy line basically into not that in describing the
put it.
Come here.
Now let's rerun the program.
We can remove the breakpoint if you want
and now we show base this year.
Check F nine to run
easy.
The Congress measures is being shown.
So you have managed to create this Iraqi key for this program.
Thank you for watching.