I've read Externalist's article (Reversing MFC Applications) about searching for Button Event of any MFC applications and gained a lot yesterday.This article introduce the whole process and related principles in details and provide a script in the end.It's no doubt that this script is convenient for us and I wanna give my thanks to the author again.
However,I have to admit that the whole process is not easy to master because of complex operations.You know,the author used Resource Hacker,Spy Window,OD and finally IDA to analyze and reserve the target in the article.If we follow those steps we'll waste much time definitely especially using IDA to reserve (if our target is not so small).Additionally,these complex operations reduce the adaptation dramatically too.
Actually,it's not necessary to use those comprehensive tools and all we only need is an OD of any version.And as you konw that all we should do is modifying one place manually.To achieve our goal,I've modified the script written by Externalist and done a tutorial to tell you how to use it.Enjoy!
If you have any questions,please refer to this article Reversing MFC Applications.
The steps:
1.Using OD to open our target and load our script (you'll find a conditional breakpoint in the Breakpoint Window after this step)
2.Press F9 to run our target and then click "View---Windows" to find Button ID and Window Handle.
3.Modify the conditional breakpoint manually.
4.Press the related button and choose "Resume" to execute our script continously when the breakpoint effect.