How to process multiple binaries in headless mode ? #8619
Unanswered
qrkyckling
asked this question in
Q&A
Replies: 1 comment
-
|
It seems I can do from ghidra.program.flatapi import FlatProgramAPI
flat = FlatProgramAPI(currentProgram)And get a handle to the current flat API but when using pyghidra.get_current_interpreter() I get a ClosedException for everything but the first file being processed. Not sure if I am using this wrongly or if it is a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I have basically narrowed my script down to just this for testing:

The first file I encounter works...

However when the script runs again I get this.

I would expect the script when it is run anew to analyze the next file in the project.
I can manually use "-process a" and "-process b" to select which binary to analyze and run headless analyzer once for each file.
But I want to recurse over every binary in the project and run my script on each binary.
How can I do this ?
I am launching headless analyzer like this

Beta Was this translation helpful? Give feedback.
All reactions