Part 4: Watching a Ring Transition

1. Write down the target CS______ EIP____________ DWC_____ PL____ so you can see as many DOUBLEWORDS as are passed through the gate.

Display the ring 0 stack as words, too. It is technically incorrect to do this, but for the purposes of this exercise, it makes things easy.

Now, again display the ring 0 stack as words again. Do not overlook the ring 3 SS and ESP at the top of the ring 0 stack.

Do not overlook the return address in the ring 0 stack, following the parameters which were copied by the hardware as it executed the call.

If you know what API will be called, you can simply set the breakpoint at the API, by using its name. A side effect is that every thread which calls the API will stop, so you may want to use something like '.p*' as the command to execute at the breakpoint, which makes it easy to see when the thread of interest is there.