JonathanSalwan / Triton

Triton is a dynamic binary analysis library. Build your own program analysis tools, automate your reverse engineering, perform software verification or just emulate code.
https://triton-library.github.io
Apache License 2.0
3.5k stars 533 forks source link

Pass execCallbacks argument from Python binding #1162

Closed hexpell closed 2 years ago

hexpell commented 2 years ago

When I'm in read memory callback for example, I want to set the concrete memory value without triggering the memory write callback I registered. It would be useful if the Python binding has the execCallbacks parameter for me to specify this behavior.

SweetVishnya commented 2 years ago

You may define a global variable for that purpose.

JonathanSalwan commented 2 years ago

It would be useful if the Python binding has the execCallbacks parameter for me to specify this behavior.

Indeed. I'm in vacation atm but as soon as I came back I will add this feature. Meanwhile, maybe you can try what @SweetVishnya suggest?

hexpell commented 2 years ago

Yes, I'm already using a global variable as workaround, but since this may be a helpful feature, and already available in C++, I thought would be nice to have in Python binding too.

mrexodia commented 2 years ago

You could consider spending a few minutes adding it to the python bindings and sending a pull request 😉

JonathanSalwan commented 2 years ago

merged