question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use headlessAnalyzer with ghidra-bridge

See original GitHub issue

I have written a script in python 3 and want to run it using the headlessAnalyzer. I have used ghidra-bridge to start a bridge server so that I can use my python 3 code, but when I run the script using headlessAnalyzer I get an error stating ImportError: No module named ghidra_bridge the headlessAnalyzer can’t detect the ghidra_bridge module, is there a way where I can run this script using headlessAnalyzer

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
justfoxingcommented, Jun 24, 2020

@sajjadirn - oops, yup, totally a bug in the code. I’ve just released a fix in version 0.2.2 - upgrade with pip install ghidra_bridge --upgrade, then re-install the server scripts with python -m ghidra_bridge.install_server <script location>. Then try rerunning and it should work.

If not, please include your script and the command you’re using to run it so I can see if there’s another issue.

1reaction
justfoxingcommented, Jun 24, 2020

@TylerKann - ghidraRoot is how I refer to the directory you unzip when you put Ghidra on your system - this is probably called something like ghidra_9.1.2_PUBLIC and has the ghidraRun script in it. It also has the support/ directory which contains the analyzeHeadless scripts that ship with every Ghidra release - they aren’t a separate install.

Read more comments on GitHub >

github_iconTop Results From Across the Web

justfoxing/ghidra_bridge: Python 3 bridge to Ghidra's ... - GitHub
You can run Ghidra Bridge as a post analysis script for a headless analysis and then run some further analysis from the client....
Read more >
Headless Analyzer README
The Headless Analyzer is a command-line-based (non-GUI) version of Ghidra that allows users to: Create and populate projects; Perform analysis on imported or ......
Read more >
Ghidrathon | Snaking Ghidra with Python 3 Scripting - Mandiant
Ghidra headless mode helps you automate analysis across many files without the overhead of Ghidra's user interface. You can also specify Ghidra ......
Read more >
ghidra: how to run a python 3 script with headless analyzer
I turns out that the python script can be used with headless analyzer script. Using the following command I can run it, just...
Read more >
ghidra-bridge - PyPI
You can run Ghidra Bridge as a post analysis script for a headless analysis and then run some further analysis from the client....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found