-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Ghidra 9.2 bug in "-scriptPath" option of analyzeHeadless #2561
Comments
I've the same problem :( . |
I'm sorry -- I never know how much detail to give about progress for tickets. A fix is in the pipeline. The bug is due to GhidraScriptUtil#fixupName assuming all scripts are Java. A hack to fix this problem would return |
9.2 Should work but it's not tested because of this: NationalSecurityAgency/ghidra#2561
despite the typo in the commit message (doh), THIS issue is fixed by e4e15cd |
I have a project with the following structure:
Problem:
However, if I move all three files ( |
I've noticed a strange behaviour in the "-scriptPath" option of Ghidra analyzeHeadless.
Up to Ghidra 9.1.2, analyzeHeadless runs a custom Python script either if it is in the local folder or in the path specified in "-scriptPath".
However, in Ghidra 9.2 analyzeHeadless runs a custom Python script only if it is in the local folder, regardless the path specified in "-scriptPath".
How to reproduce the bug:
HelloWorld.py
script in the~/Desktop/tmp_ghidra/
folder.Desktop
folder.It works as expected in version 9.1.2
It does not work. BUG in version 9.2
Further tests
Running the commands from
~/Desktop/tmp_ghidra
They work, as expected:
They work, but the
HelloWorld.py
is not in the~/Desktop/
folder:Running the commands from
~/Desktop/
They do not work, as expected.
The text was updated successfully, but these errors were encountered: