Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Plugin APIs

Featured Replies

Posted

I have been reading the documentation to implement some Debug API functions in a plugin.

http://x64dbg.readthedocs.io/en/latest/developers/functions/debug/DbgDisasmAt.html

I see a lot of functions, but where can I see the C/C++ prototypes or signature of each one ?

Is this link still a working progress doc ? If so, that's fine but would like if someone can point some samples maybe where I can see the functions working.

Thanks!

 

Edited by fred26

There is a good few plugins already out there that are on github etc, that will help to show how some of the functions are made etc: https://github.com/x64dbg/x64dbg/wiki/Plugins

Yes the documentation doesn't have all the parameters for the functions, it is work in progress.

Mostly looking at the source code for the mo is your best bet for getting to grips with the functions available to plugin developers

 

plugin functions can be found defined in _plugins.h here: https://github.com/x64dbg/x64dbg/blob/development/src/dbg/_plugins.h#L275

this also includes all the relevant structures for plugins

 

DbgFunctions can be found here: https://github.com/x64dbg/x64dbg/blob/e58bc13526eafbb70f2b1316a32bd12790eed588/src/bridge/bridgemain.h#L777

or here: https://github.com/x64dbg/x64dbg/blob/development/src/dbg/_dbgfunctions.cpp#L315

 

Example for DbgDisasmAt information:

https://github.com/x64dbg/x64dbg/blob/e58bc13526eafbb70f2b1316a32bd12790eed588/src/bridge/bridgemain.h#L824

BRIDGE_IMPEXP void DbgDisasmAt(duint addr, DISASM_INSTR* instr); 

so DISASM_INSTR is found here: https://github.com/x64dbg/x64dbg/blob/e58bc13526eafbb70f2b1316a32bd12790eed588/src/bridge/bridgemain.h#L673

 
typedef struct
{
    char instruction[64];
    DISASM_INSTRTYPE type;
    int argcount;
    int instr_size;
    DISASM_ARG arg[3];
} DISASM_INSTR;

hope that helps

ps: here is a link to a DbgDisamFastAt function usage (similar-ish to DbgDisasm): https://github.com/ThunderCls/xAnalyzer/blob/master/xAnalyzer/xanalyzer.cpp#L237

 

Edited by fearless
add DbgDisasmFastAt ref

  • Author

Thanks so much!

I will take a look

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.