Replies: 1 comment 1 reply
-
Here's how an Analyzer is calling a GhidraScript: This method should be somewhat generic, in that Ghidra will be determining what type of script provider to use (java, jython, pyghidra, etc). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For the CodeCut GUI plugin (https://github.com/JHUAPL/CodeCut) we kick off some Python scripts, we have two kinds, Jython, and Python 3. Our current approach to Python 3 is kicking off the native Python 3 executable in a separate process. We did this mostly for library dependencies (things only available in Python 3).
With Ghidra 11.3 I've started exploring PyGhidra/Pyhidra and specifically the script provider class (https://github.com/NationalSecurityAgency/ghidra/blob/master/Ghidra/Features/PyGhidra/src/main/java/ghidra/pyghidra/PyGhidraScriptProvider.java) - but I was curious if anybody has example code for how to do this. Is it as simple as making the script classes extend PyGhidraGhidraScript instead of JythonScript and defining a run() function that calls runScript()? (and I guess making sure you kick off Ghidra the new pyghidra way?)
Thanks in advance -- evm
Beta Was this translation helpful? Give feedback.
All reactions