diommsantos / Gx64Sync

A set of plugins for Ghidra and x64Dbg synchronization. A faster, more flexible ret-sync.
Other
28 stars 2 forks source link

Improvement suggestion: sync label names and comments in Hyper Sync #10

Open idan-h opened 3 months ago

idan-h commented 3 months ago

I find myself changing stuff on x64dbg when debugging (like comments, labels), and redo the same in Ghidra. It would be helpful if hyper sync could sync all my new comments in x64dbg to Ghidra (and also from Ghidra to x64dbg) and sync the labels, function names etc the same way.

variable names could also be synced to x64dbg, maybe with comments in the usage locations (but I guess it would be harder to do and characterize).

another option that would be cool is if I could sync all the labels and comments of the current function (not line), in a way that wouldn't erase existing comments.

Btw, when I have the time I will try contributing, in the meantime I am creating an issue to hear what you think :)

diommsantos commented 3 months ago

Seems like a good feature to me! I don't have much time now, but that doesn't seem too difficult to implement. If you want to do it yourself, you can look at the code for CommentSync, should provide you the relevant functions for implementing the comment synchronization functionality. For the label part is just a matter of finding the relevant functions in the Ghidra API and x64Dbg pluginsdk.