VM-Packages icon indicating copy to clipboard operation
VM-Packages copied to clipboard

ida.plugin.diaphora.vm: Install it as an IDA plugin

Open Ana06 opened this issue 10 months ago • 2 comments

Details

ida.diaphora.vm is just copying the diaphora script to the Utilities folder. It would be much useful if we would install it as a plugin as we do in ida.plugin.capa.vm and rename it as ida.plugin.diaphora.vm

Ana06 avatar Apr 16 '24 13:04 Ana06

I'll explore how difficullt this is. diaphora does not support installation as a plugin.

Ana06 avatar Apr 16 '24 13:04 Ana06

I think it's a great plugin! Would be nice to have it installed properly if possible. Thank you for looking into it!

emtuls avatar Apr 16 '24 15:04 emtuls

I have explored writing a plugin file to wrap the script. The issue is to run the diaphora code with the current project structure, as it is not a Python module. Making the project a Python module would only imply changing the imports in diaphora to be prepended by diaphora.. After that, coping the diaphora plugin file and the diaphora Python module folder (similar to how we do with the flare module in ida.plugin.flare.vm would install diaphora as a plugin. So taking this into account, I think we should ask upstream if they would be up to supporting installing diaphora as a plugin and see if we can help.

Ana06 avatar May 13 '24 14:05 Ana06

diaphora has now plugin support: https://github.com/joxeankoret/diaphora/issues/301 :tada: Waiting for the release to make the change in VM-Packages :wink:

Ana06 avatar May 21 '24 12:05 Ana06