-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to analyze a big file using ghidra_bridge, without a timeout exception? #48
Comments
So, you've got two options (now). Either you can create your bridge with a specific response_timeout value in seconds (e.g., 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 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. |
Yeah that analyze behavior is quite frustrating |
Thanks a lot for the -1 update |
In ghidra_bridge I tried the following commands:
import ghidra_bridge b = ghidra_bridge.GhidraBridge(namespace=globals()) analyze(currentProgram)
Although this does start the analysis, I get a timeout before it completes it (its a big file). Is there any way I can do analysis remotely without a timeout?
Thanks!
The text was updated successfully, but these errors were encountered: