Special Command: Repeating a Command Using z While a Given Condition is True
When doing live debugging, it’s not uncommon to have to repeat a set of commands until a condition becomes true or false.
There are several ways to do this, and one of them is through the z command.
You can create automated commands using this instruction: just think about the possibilities!
Here is an example:
.echo REGISTERS; tr; .echo CALL STACK; kL 1000; z(@eip != 66FCA607 )
The line above displays the registers and the call stack while running the application. At some point, when the next instruction address is 66FCA607, it stops the execution.
Here you can see scripts that may be using the z command.
Comments
- Anonymous
March 09, 2008
PingBack from http://msdnrss.thecoderblogs.com/2008/03/10/special-command-repeating-a-command-z-while-a-given-condition-is-true/