x64dbg / x64dbgpy

Automating x64dbg using Python, Snapshots:
https://ci.appveyor.com/project/mrexodia/x64dbg-python/build/artifacts
MIT License
1.47k stars 70 forks source link

How to list the all debugs sets ? Missing Function #29

Closed Th4nat0s closed 4 years ago

Th4nat0s commented 6 years ago

Hello guys...

I had a question that https://github.com/x64dbg/x64dbgpy/blob/v25/pluginsdk/_scriptapi_debug.h does not answer.

How could we programatically list all set breakpoints  ?

Nukem9 commented 6 years ago

@Dagobert- @asketen @jahmezz @SabedMako

https://github.com/x64dbg/x64dbg/issues/1863#issuecomment-361054182 Everybody who is still subscribed to this and doesn't know why: change your password. You will not see anything in your audit log, but your credentials were used in a Github API call to subscribe to this repo.

I'm deleting your comments since they (obviously) aren't relevant. You can unsubscribe by clicking the link in the Github email.

@Th4nat0s https://github.com/x64dbg/x64dbgpy/blob/v25/pluginsdk/bridgemain.h#L843 DbgGetBpList()

Th4nat0s commented 6 years ago

Thanks for your help @Nukem9 ...but for simple humans like me :)

in the .h file we see DbgGetBpList() needs two parameters and return an integer The first one is the type of breakpoint quite easy to understand in the code..

typedef enum
{
    bp_none = 0,
    bp_normal = 1,
    bp_hardware = 2,
    bp_memory = 4,
    bp_dll = 8,
    bp_exception = 16
} BPXTYPE;

The second one is the structure with Breakpoint and BRIDGEBP structure ... this is called a "BPMAP structure.

how to use it  in the debugger in python to fech the list of the break point ??

toto = BPMAP() <- it doesn't work...

And with a simple dict either.

toto = {}
DbgGetBpList(bp_normal, toto )
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: in method 'DbgGetBpList', argument 2 of type 'BPMAP *'

My goal is to retrieve in the python the bp list and iterate for.. in need to retrieve state, module label and Address.

SabedMako commented 6 years ago

Bon bah moi je vais regarder Vinesauce, le meilleur streamer du monde!!!

Télécharger Outlook pour Androidhttps://aka.ms/ghei36


From: Thanat0s notifications@github.com Sent: Saturday, October 20, 2018 1:32:09 PM To: x64dbg/x64dbgpy Cc: SabedMako; Mention Subject: Re: [x64dbg/x64dbgpy] How to list the all debugs sets ? Missing Function (#29)

Thanks for your help @Nukem9https://github.com/Nukem9 ...but for simple humans like me :)

in the .h file we see DbgGetBpList() needs two parameters and return an integer The first one is the type of breakpoint quite easy to understand in the code..

typedef enum { bp_none = 0, bp_normal = 1, bp_hardware = 2, bp_memory = 4, bp_dll = 8, bp_exception = 16 } BPXTYPE;

The second one is the structure with Breakpoint and BRIDGEBP structure ... this is called a "BPMAP structure.

how to use it in the debugger in python to fech the list of the break point ??

toto = BPMAP() <- it doesn't work...

And with a simple dict either.

toto = {} DbgGetBpList(bp_normal, toto ) Traceback (most recent call last): File "", line 1, in TypeError: in method 'DbgGetBpList', argument 2 of type 'BPMAP *'

My goal is to retrieve in the python the bp list and iterate for.. in need to retrieve state, module label and Address.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/x64dbg/x64dbgpy/issues/29#issuecomment-431572261, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARRwUCFNYcXqI0-bzLva_PWHVbnTY1gTks5umwm5gaJpZM4Xvqf8.

herosi commented 4 years ago

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.

Th4nat0s commented 4 years ago

wow... Thank's :)