huettenhain / dhrake

The Delphi Hand Rake
147 stars 17 forks source link

Unable to run any of the scripts #9

Closed shaperones0 closed 7 months ago

shaperones0 commented 7 months ago

Scripts have been successfully added into Ghidra, so they appear in the script manager: image

However, running them doesn't do anything. CodeBrowser's console contains only the following output: image

> Unable to load script: DhrakeInit.java
>   detail: The class could not be found. It must be the public class of the .java file: DhrakeInit

Which is weird, since the file does contain the class and stuff (all parenthesis and similar are in right order) (see first screenshot)

huettenhain commented 7 months ago

Frankly, this does not sound like a problem with Dhrake specifically. Can you try to reproduce this with a simple script that does nothing? If you can, the problem is likely more general.

shaperones0 commented 7 months ago

So, apparently the issue was in the fact that i put those into a separate folder (so there were only two files in it, those are being the scripts). After I moved the scripts to the ghidra_scripts directory, the issue was resolved.