fred26 Posted March 21, 2017 Posted March 21, 2017 How can I debug a plugin? I can imagine that same way debugging a regular DLL ? Thanks
CyberGod Posted March 21, 2017 Posted March 21, 2017 (edited) You can try to analyze it in static, IDA for example, or start this application that uses the plug-in in the debugger (or just attach to the running process) and in the window "Executable modules" (OllyDbg) you will see all the libraries (plugins) that the application uses and you can debug as you like. Edited March 21, 2017 by CyberGod
fred26 Posted March 21, 2017 Author Posted March 21, 2017 13 minutes ago, CyberGod said: You can try to analyze it in static, IDA for example, or start this application that uses the plug-in in the debugger (or just attach to the running process) and in the window "Executable modules" (OllyDbg) you will see all the libraries (plugins) that the application uses and you can debug as you like. Thanks. I need to debug my own plugin, for x64dbg.
CyberGod Posted March 21, 2017 Posted March 21, 2017 (edited) Oops, I'm sorry I did not look at the name of the forum thread - "x64dbg" Edited March 21, 2017 by CyberGod
mrexodia Posted March 21, 2017 Posted March 21, 2017 Just put the version of x64dbg you want to run as a path for the executable in project settings.
fred26 Posted March 21, 2017 Author Posted March 21, 2017 (edited) Thanks both, Regards Edited March 21, 2017 by fred26
fearless Posted March 22, 2017 Posted March 22, 2017 For me when im debugging a plugin i use Debug3264 - Its a update from Donkey of the vKim like macros that allow me to print to a debug window some information I can print contents of variables or registers, dump memory and print text strings all to help figure out the flow of the program - where it might be crashing and any values that i might require to know to figure stuff out Of course im writing the x64dbg plugins using masm for x86 and jwasm/hjwasm for the x64 version of the plugins Ive uploaded a copy of the Debug3264 lib and include file here: https://www.dropbox.com/s/np5uj1ivbafz7cj/masm32_donkeys_vkimlike_debug.zip?dl=0 It has macros for masm/jwasm that wrap function calls to the library and output to the window of dbgwin.exe (included in the zip) I also created an x86 and x64 version of the x64dbg plugin SDK to help create plugins using assembler. They can be found here for anyone that is interested: https://github.com/mrfearless/x64dbg-Plugin-SDK-For-x86-Assembler https://github.com/mrfearless/x64dbg-Plugin-SDK-For-x64-Assembler For other languages, some Debug output functions would also probably help to figure out whats going on and where in your plugin. 3
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now