areverser
November 1st, 2010, 21:05
Hi all!
i am reversing driver with IDT hook on int1 and int3. I use VMWare and WinDbg as kernel debugger via named pipe. To be able to set a breakpoint i was forced to patch driver. So now patched driver not set his own int1 and int3 handler. But here come the problem, because driver code call int instruction itself and i need trace into driver int handler. How to proceed in this situation? Can i "simulate" int event and call driver handler with correct parameters? Or let the driver change IDT and patch int handler to remove IDT hook and put int 3(so my WinDbg break) instruction here? Is it safe to manipulate with IDT inside int handler?
thank you and sorry for my bad english.
i am reversing driver with IDT hook on int1 and int3. I use VMWare and WinDbg as kernel debugger via named pipe. To be able to set a breakpoint i was forced to patch driver. So now patched driver not set his own int1 and int3 handler. But here come the problem, because driver code call int instruction itself and i need trace into driver int handler. How to proceed in this situation? Can i "simulate" int event and call driver handler with correct parameters? Or let the driver change IDT and patch int handler to remove IDT hook and put int 3(so my WinDbg break) instruction here? Is it safe to manipulate with IDT inside int handler?
thank you and sorry for my bad english.