Log in

View Full Version : break point on a DLL


LaBBa
May 11th, 2010, 00:22
Hi
i have a Java application that uses native call to a c++ DLL
how can i execute the application and break on the DLL with Olly ?

any idea ?

Thanks,
LaBBa.

cod
May 11th, 2010, 03:00
Quote:
[Originally Posted by LaBBa;86451]Hi
i have a Java application that uses native call to a c++ DLL
how can i execute the application and break on the DLL with Olly ?

any idea ?

Thanks,
LaBBa.


execute your java app and attach olly to javaw process. When dll is loaded, you can set breakpoints

Indy
May 11th, 2010, 09:12
F2 (break on LdrpCallInitRoutine()).

ronnie291983
May 11th, 2010, 23:51
one other way is to find the address of the function in the DLL and replace it with 0xCC and set IDA/olly in Just-in-time debugging mode and when the call happens it causes an exception and stops at that point, replace the byte with original one and continue the execution normally, tried this with .NET, it works.

There shd be an exception record in the stack, but dosen;t seem to cause any problems. Please let me know if this will cause any problems in any situation.