How to use headlessAnalyzer with ghidra-bridge
See original GitHub issueI 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:
- Created 3 years ago
- Comments:19 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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 withpython -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.
@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 theghidraRun
script in it. It also has thesupport/
directory which contains theanalyzeHeadless
scripts that ship with every Ghidra release - they aren’t a separate install.