Setting Breakpoints & Stepping Instructions
Set breakpoint, Step-over, and Step-in
In HyperDbg, we have multiple options to set a breakpoint.
One of the ways of setting breakpoints is hooking. Another way is using the 'bp' command. In this article, we describe the second method.
Assume that ObRegisterCallbacks
is located at fffff805`5cbac610
.
This function creates callbacks for thread, process, and other objects' tasks like creation, opening, etc. You can see more information at MSDN.
Many game anti-cheat solutions use this function to monitor processes to prevent game cheater to cheat on games.
In order to bypass this mechanism, we use the following command in HyperDbg to set a breakpoint on this function.
or,
Then, we will run our game and see if the breakpoint is triggered or not.
If the breakpoint is triggered, then the system is halt and we are able to control the debuggee.
After that, we can use the 'p' command to step-over the instructions.
You can also add a number to run multiple instructions.
If you want to step-in, you can use the 't' command.
Last updated