Jump to content
Tuts 4 You
Sign in to follow this  
Aldhard Oswine

Set a breakpoint for a visual element in x64dbg

Recommended Posts

Aldhard Oswine

How can I set a breakpoint for a button click or input field in x64dbg?

Share this post


Link to post
mrexodia

You cannot. You can put breakpoint on locations in the code. If you find the window procedure you can put a breakpoint there.

Share this post


Link to post
Loki

If you have an input field you can have a think about what the program might be doing in the background. At some point (whether on button press or keypress) the program needs to grab that data from the text box.

 

Work out what APIs the program might be using for this and breakpoint on them - use some intuition and start tracing. You'll find it

 

Share this post


Link to post
fearless

If its raw win32 exe and not using some other packaging with wrapper dll's for frameworks (Qt, python etc) then some api functions or messages to consider looking for might be:

GetCapture
WM_LBUTTONDOWN
WM_LBUTTONUP

And BN_CLICKED notification code of the WM_COMMAND message for some buttons

For text input some api functions and/or messages to look for are:

GetWindowText
GetWindowTextLength
GetDlgItemText
WM_GETTEXT
WM_GETTEXTLENGTH

 

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...