ghidra
ghidra copied to clipboard
Specify on the command line to automatically load into file specified and even jump to a location
Is your feature request related to a problem? Please describe.
I my work I often to a quick dive into binaries, so I wrote a Ghidra script that automatically imports the file, auto-analyses them etc.
Now when I want to assess a binary I load ghidra ~/project.gpr
but then have to manually select the binary to load and press Goto to jump to e.g. main
.
These are several time consuming and unnecessary manual steps that could be done faster by specifying them on the command line.
Especially if there is already a long list of files in the project it is tedious to scroll to the correct file.
Describe the solution you'd like I would like to be able to pass to Ghidra not only the project file, but also the binary to automatically load and even the function call to automatically jump into.
e.g.: ghidra project.gpr:/subfolder/binary:main
- this would load the project.gpr
project, automatically open the /subfolder/binary
, and jump to the main
function
Describe alternatives you've considered a lot of manual work :(
As a temporary workaround, leave the CodeBrowser window open when you exit Ghidra. I know this isn't perfect as you've still got to find your starting point once, but on subsequent opening of the project it's there (together with your navigation history - bonus).
@Wall-AF for some of my work I assess a file only once, hence there is no point leaving it open - and for most other work the binaries are large and I would not be able to keep more than a few open at a time, so sadly this trick does not help me.
I am wondering if anyone has come up with a solution for the above issue? I am running into a similar issue, I want to be able to open a sample and auto-analyze from the command line, ultimately opening the GUI. Is that something that can be done?