Log in

View Full Version : DllMain breakpoint


0rp
April 16th, 2004, 18:20
hi,

how can i set a breakpoint (using olly) on the first instruction of a DllMain ?

the problem is, that LoadLibrary will call immediately the DllMain after the dll is mapped in the callers addressspace

is there a trick to accomplish that, or should i step through the whole LoadLibrary-function?

Ricardo Narvaja
April 16th, 2004, 20:30
Put a mark in DEBUGGING OPTIONS-EVENTS- stop in module load- and when stop and look the name of dll you want in VIEW-EXECUTABLE, right click in this line and go to FOLLOW ENTRY with this you found the entry point, and you can put a BP o HE in Entry Point.

Ricardo Narvaja

0rp
April 18th, 2004, 09:06
damn, i love ollydbg
thxalot