Comments (3)
So, you've got two options (now).
Either you can create your bridge with a specific response_timeout value in seconds (e.g., b = ghidra_bridge.GhidraBridge(namespace=globals(), response_timeout=<value>)
) to control the timeout for every command in the script, or you can use remote_eval with the timeout_override argument to just affect the one command (e.g., b.bridge.remote_eval("analyze(currentProgram)", timeout_override=<value>)
).
Like you suggest, analyze() can take arbitrarily long based on program size, so I've just added functionality in jfx_bridge version 0.3.3 (the RPC package ghidra_bridge is built on), so you can specify -1 for the response_timeout/timeout_override values. This will disable the timeout and cause the bridge to wait forever until it gets a response.
You'll need to make sure you've updated jfx_bridge in your client environment (you don't need to update the code on the Ghidra side for this to work), so do pip install jfx_bridge --upgrade
and make sure you've got version 0.3.3.
As a side note, I noticed analyze() behave a little weirdly as I was testing, just mentioning so it doesn't catch you out: The first call to analyze() will block until analysis is complete as you expect, but if you call it again without saving the changes or closing and re-opening the program, calling analyze() will start the analysis, but return immediately before it finishes. No idea why, #justGhidraThings.
from ghidra_bridge.
Yeah that analyze behavior is quite frustrating
from ghidra_bridge.
Thanks a lot for the -1 update
from ghidra_bridge.
Related Issues (20)
- AttributeError: 'instancemethod' object has no attribute '__len__' (bridge.py", line 974) HOT 5
- PyPI description has three sequential steps all numbered "1" HOT 2
- Timeout value is not configurable in `ghidra_bridge_server.py` HOT 1
- Are you able to write to a ghidra project? HOT 1
- findBytes return an empty Array HOT 1
- Unable to stop auto-analysis for script connected via ghidra_bridge HOT 1
- Expose other IPC channels HOT 1
- How to put arguments in remote_eval?
- setComment causes BridgeException HOT 2
- Cannot inherit bridged classes HOT 1
- Unhashable type _bridged_ghidra.program.database.function.FunctionDB HOT 2
- Bad file descriptor HOT 1
- Socket not closed, when GhidraBridge Object gets out of scope HOT 5
- Timeout Condition HOT 6
- How to remote debug with VSCode? HOT 4
- Windows: Binding on low port blocked by firewall HOT 3
- How to pass arguments to the post script HOT 1
- Question: how does the RPC bridge handle class callbacks? HOT 3
- using in IDE with proper auto completion
- Exception triggered when calling "getCalledFunctions" on a Function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghidra_bridge.