How to run a script using PyGhidra from Ghidra's Script Manager (not in Headlesss mode) #7472
-
I want to run a script using PyGhidra from Script Manager (not in Headlesss mode). how to do this This is the script i used
This throws import error in Ghidra Console window I have already installed pyghidra and can use pyghidra outside of Ghidra I know we can use pyghidra.run_script() using a python interpreter to run ghidra script in headless mode. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Did you launch Ghidra via the support/pyghidraRun script? |
Beta Was this translation helpful? Give feedback.
-
Add This assumes you have already done what d-millar has explained above. |
Beta Was this translation helpful? Give feedback.
Add
#@runtime PyGhidra
to the start of your script and write a normal python script. There is no need to use the PyGhidra library or attempt to start it since it's already running.This assumes you have already done what d-millar has explained above.