Welcome back. In this,
in this video, we are going to patch the file to show the good message no matter what the password is.
So I hope you have tried that.
Let's begin.
So I'm going to restart this and run to the first breakpoint, and just step over until I come to this,
uh, read, uh, password function, step over it, and then I will just enter any wrong password.
1, 2, 3, 4, 5, 6, 7, 8, 9, hit Enter.
And then over here.
Now we can graph this. Right-click and graph it.
And you can see, uh, there are many ways to solve this.
We're going to come here.
Now one way to solve it is to just reverse the jump.
That means assemble a JG, jump equal.
That will reverse the logic so that no matter when you enter the wrong password, it will always go
to the right and show you "nice job, password found."
But if you did that way, then if you enter the right password, uh, it will go and say "wrong password."
So it's just reversing the logic, okay.
And another way, easier way to do it, is to NOP this.
When you NOP this, you will always go to the right because this jump will never happen.
So we're going to try a NOP.
So just right-click this and just put a comment there.
I'm just going to put the comment there.
Uh, NOP this.
Okay.
And then here.
Uh, refresh.
You see the NOP?
There you go.
Right-click and follow in disassembler.
And this is the one you're going to NOP.
So you can just right-click, binary, fill with NOPs, click okay.
And then you can patch it.
Patch it and give it a name.
Call this, uh, dash 2.
Okay?
And now we're going to try our patch with just any wrong password.
And you see this, "nice job,
password found."
So it's that simple.
There are more than one ways to solve this.
Of course, instead of doing this, you could have gone inside this call, and then, um, you can just
graph this and see, you know, you can just somehow, um, at the bottom here, you can reverse some
jumps.
Now, for example, all this, you can set some value to, uh, -, make it 1, for example.
Or you can OR - also possible, might be possible.
All right.
So there's more than one way to actually solve this problem, this, uh, crackme.
You might also explore maybe reversing some jumps here.
So there's many ways you can do it.
So I leave that to you as an exercise.
So that's all for this video on how to patch the program to always show the good message, no matter
what your password is.
That's all.
I'll see you then.
Thank you for watching.