Command Line Interface for Ghidra so you can move fast
Isn't it annoying:
- Opening Ghidra
- Waiting for it to load
- Creating a new project, awkwardly navigating to your current directory
- Finding and importing your binary
- Waiting for it to analyze
and ONLY NOW can you start your reversing.
With ghidra-cli, all you do is
ghidra-cli -n -i ./my_binaryThe Ghidra project will be created, the binary imported, and analyzed for you!
Put the ghidra-cli script somewhere in your $PATH and enjoy!
Note
Make sure the GHIDRA_PATH inside the script is the path to where your Ghidra is installed
Create a new temporary project (in /tmp/) and import+analyze ./chal:
ghidra-cli -n -i ./chalCreate a new empty project in the current directory with the name 'ghidra'
ghidra-cli -n -d . --name ghidraOpen an existing ghidra project called my_project:
ghidra-cli ./ghidra.gprUsage: ghidra-cli [-h | --help] [project]
ghidra-cli (-n | --new-project) [(-d <dir>) (--name <name>)] (-i (<directory>|<file>))...
-h, --help Show this screen.
-n, --new-project Create a new project.
-d, --project-dir <dir> Directory where to create the new project. [default: /tmp]
--name <name> The name of the new project.
-i, --import (<directory>|<file>) The file/directory of files to import into the new project. May be specified multiple times.