mahaloz / DAILA

A decompiler-agnostic plugin for interacting with AI in your decompiler. GPT-4, Claude, and local models supported!
532 stars 46 forks source link

DAILA context-menu does not add in Ghidra on Windows #27

Closed velteyn closed 2 months ago

velteyn commented 8 months ago

Hello, I followed the installation manual but at the end when I installed the plugin on folder

C:\Users(MY USER)\ghidra_scripts

and enabled the path on ghidra script manager I cannot see the plugin and I cannot enable it !! Am I missing something ? Thank you

velteyn commented 8 months ago

Ok I installed it manually and it seem installed. I sterted it but NO context DAILA menù appears... immagine immagine

mahaloz commented 8 months ago

@velteyn from the looks of the error, it seems like you don't have dailalib installed in the Python instance that your Ghidra is trying to access... To confirm, are you running this natively on Windows?

mahaloz commented 8 months ago

From your terminal, try and run python3 -m daila --help, see if it runs. If you need to run a different command from python to get this to work, like py3, please let me know. The line likely causing the error on Windows is this: https://github.com/mahaloz/DAILA/blob/6ee9792f85032ff9b0de5b76643fb466f92b58c0/dailalib/daila_plugin.py#L25

velteyn commented 8 months ago

@velteyn from the looks of the error, it seems like you don't have dailalib installed in the Python instance that your Ghidra is trying to access... To confirm, are you running this natively on Windows?

Yep Native windows 11

velteyn commented 8 months ago

immagine

mahaloz commented 8 months ago

@velteyn my mistake. Try python -m dailalib --help

velteyn commented 8 months ago

Mmm strange but is the installer not installing the module ? I have only this python installed in this machine, nothing more.. I intended that the intaller do anything, Im not a python expert tough

velteyn commented 8 months ago

immagine

mahaloz commented 8 months ago

@velteyn if you have Discord, we can do back and forth faster over text there if you can join: https://discord.gg/FHVY8yjb.

Al-Christodoulou commented 6 months ago

I'm experiencing the same issue, and dailalib is installed correctly. I don't know if the Closing connection message is supposed to pop up either. ghidra

mahaloz commented 6 months ago

Hi, @Al-Christodoulou. It is good that you see a connection, normally you should see a connection, a disconnection, and one more connection (due to the way things are inited). For some reason, the connection never comes back. I don't have the time right now to debug Windows versions of the tool, but I can give you some advice. If you run it just like you did for this one, wait a few seconds, than go to a terminal and run:

python3 -m dailalib -s ghidra

I expect something should crash from you running that. Post the crash after that.

mahaloz commented 6 months ago

Hi @Al-Christodoulou, I think this has been fixed in #31. Lmk.