Log in

View Full Version : No event for OKButton in Delphi-Prog


znow
August 15th, 2006, 02:46
Hi,

I'm new in reversing (that's why I'm posting here ;-) and need some help. I promise I already read a lot of FAQs.
I'm working on an client-server application which brings up a login mask. Because of the network traffic it seems that the login credentials (only those) are some kind of encrypted.
first problem I had, the software was packed. So I used pMack2. For reversing I'm using Olly and Ida. The application is written in delphi, so I use DeDe to find some events - all the other API-Calls like GetDlgItemTextA, GetwindowText,... didn't work - of course.
I found the apropriate LoginForm. The problem is, that there is no event for pressing the OKButton. I found another event which is triggered every time I press a key (inside the login field). I set BPs on every event, but none of them are triggered if I press OK or enter.
I'm not sure if there are other ways to find events, or if delphi is using the same functions for OK and KeyDown.
Does anybody have experiences with that and can give me a hint.

thanx

znow

LLXX
August 15th, 2006, 03:49
Tried the standard breakpoint on WM_COMMAND method?

znow
August 15th, 2006, 06:08
no.
How can I do this in Olly ?

znow
August 15th, 2006, 06:39
sorry for this fast question. I found something on the forum about this topic.

dELTA
August 15th, 2006, 10:52
When you ask a question and then find the answer yourself, you should always post a reference to the answer in your thread, out of politeness to those reading the thread, and also to help others who may get your thread as a result of a search later.

So, please post a link to what you found here.

znow
August 15th, 2006, 11:10
Hi I only found some hints in a german faq. But anyway it doesn't work. I set a conditional BP with MSG==111 on SendMessageA but I still couldn't catch the OKButton event.

Any ideas ?

LLXX
August 15th, 2006, 19:53
SendMessageA? I think you need to increase your knowledge of Windows' Window Manager operation. SendMessage is for sending messages to windows, GetMessage is for retrieving them.

znow
August 17th, 2006, 04:36
thanks. make sense.
I tried to catch the GetMessage the same way but also without success :-(