Ghidra Cheatsheet
What It Is
NSA's free and open-source reverse engineering framework with disassembler and decompiler.
Quick Start
- Import binary: File → Import File
- Auto-analyze when prompted (select all analyzers)
- Navigate using Symbol Tree, Functions list, or search
Key Windows
| Window | Purpose |
|---|---|
| Listing | Disassembly view |
| Decompile | C-like pseudocode |
| Symbol Tree | Functions, labels, imports |
| Data Type Manager | Type definitions |
| Bytes | Raw hex view |
Essential Shortcuts
G– Go to addressL– Label/renameT– Set data typeCtrl+Shift+F– Find stringX– Show cross-references- `` – Toggle comment
Ctrl+E– Edit function signature
Analysis Workflow
- Find
mainor entry point - Rename functions as you understand them
- Follow cross-references (X key) to trace data flow
- Focus on API calls (imports) to understand behavior
- Add comments as you go
Common Mistakes
- Not running auto-analysis on import
- Trying to read everything linearly (follow execution flow instead)
- Ignoring the decompiler window (it's usually more readable)
