Skip to content

How to run a script using PyGhidra from Ghidra's Script Manager (not in Headlesss mode) #7463

@muhammed1rfan

Description

@muhammed1rfan

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

import pyghidra
pyghidra.start()

#doing stuff

This throws import error in Ghidra Console window
import pyghidra
ImportError: No module named pyghidra

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.
But i want to run a script using PyGhidra from Ghidra's Script Manager for the current Program opened in Ghidra

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions