Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakpoint list #39

Open
gynt opened this issue Sep 2, 2019 · 8 comments
Open

Breakpoint list #39

gynt opened this issue Sep 2, 2019 · 8 comments

Comments

@gynt
Copy link

gynt commented Sep 2, 2019

Is there a way to access all breakpoints similar to GetList for labels?
BPMAP* does not do the job, as there is no way to increment a pointer in Python.

@ross-weir
Copy link

Maybe x64dbgpy.Breakpoint.list() will do what you're after.

@gynt
Copy link
Author

gynt commented Nov 12, 2019

@ross-weir Thank you for thinking along! The function you suggested only returns breakpoints that are registered in the __breakpoints dictionary. I would like to have breakpoints that are set in x64dbg (in the database) when I launch a program, just like GetList does for labels.

@mrexodia
Copy link
Member

mrexodia commented Nov 12, 2019 via email

@gynt
Copy link
Author

gynt commented Nov 12, 2019

Of course!
For now, I found a workaround to manipulating breakpoints by calling commands (DirectExec).

I feel BPMAP was wrongly implemented for Python.
Perhaps it can be implemented in the same way as for labels? I have no time to figure out how swig works (and exactly how x64dbg works) myself unfortunately.

https://github.com/x64dbg/x64dbgpy/blob/a264bfa27da27f8ef92e76ec13798102b284bd8e/swig/x64dbgpy/pluginsdk/_scriptapi/label.py

https://github.com/x64dbg/x64dbgpy/blob/a264bfa27da27f8ef92e76ec13798102b284bd8e/swig/_scriptapi_label.i

@mrexodia
Copy link
Member

mrexodia commented Nov 12, 2019 via email

@herosi
Copy link
Collaborator

herosi commented Nov 17, 2019

Hi @gynt,
If you want to just access BPMAP, you can use a function named DbgGetBpList that I have added recently. Although the pre-compiled binary doesn't exist yet, you can compile the latest code and use it.

@mrexodia
Copy link
Member

Latest binaries can always be found here: https://github.com/x64dbg/x64dbgpy/releases

@herosi
Copy link
Collaborator

herosi commented Nov 17, 2019

Wow, that's perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants