Using and adapting existing scripts
Ghidra scripts allow you to automate RE tasks when analyzing binaries. Let's cover an overview of how to use scripts from CodeBrowser in a hello world
program. Our starting point here is a hello world
program loaded into Ghidra's CodeBrowser, as explained in the Overview of Ghidra's features section of Chapter 1, Getting Started with Ghidra.
As mentioned in the introduction of this chapter, Ghidra includes a true script arsenal. To access it, go to Window and then Script Manager. Alternatively, click the button highlighted in the following screenshot:
As you can see on the left in the folder browser, all these scripts are categorized by folder, showing the scripts each one contains when selected:
In the preceding screenshot, when clicking on the checklist icon located...