Understanding the Ghidra extension skeleton
In the ghidra_9.1.2\Extensions\Ghidra
Ghidra extensions folder, there is also a skeleton
folder, which includes five skeleton source code located in ghidra_9.1.2\Extensions\Ghidra\Skeleton\src\main\java\skeleton
, which enables us to write any kind of Ghidra extension.
Next, we will discuss the different types of plugin extensions by overviewing its skeletons. Those skeletons are available from Eclipse and we will create an extension later using a skeleton in the Developing a Ghidra extension section.
Analyzers
Analyzers allow us to extend the Ghidra code analysis functionality. The skeleton to develop analyzers is available in the SkeletonAnalyzer.java
file, which extends from ghidra.app.services.AbstractAnalyzer
.
The analyzer skeleton consists of the following elements:
- A constructor, which indicates the analyzer's name, its description, and the analyzer's type. In addition, you can call to
setSupportOneTimeAnalysis...