-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
CheatSheet.html
665 lines (663 loc) · 21.5 KB
/
CheatSheet.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
<html>
<head>
<title>Ghidra Cheat Sheet</title>
<style>
ul {
font-size: smaller;
list-style-type: none;
margin: 0;
}
@media print {
@page {
margin: 0;
}
page {
padding: 0.25in;
display: block;
page-break-inside: avoid;
column-count: 3;
column-gap: 0.5in;
}
div.front {
position: relative;
height: 8in;
page-break-inside: avoid;
}
table {
page-break-inside: avoid;
margin-left: auto;
margin-right: auto;
margin-bottom: 1em;
border-spacing: 0px;
border: 2pt solid black;
font-size: 75%;
}
tr th, tr td {
border-top: 1pt solid black;
}
tr:first-child th, tr:first-child td {
border-top: none;
}
tr.footnotes td {
padding:0;
margin:0;
}
tr th {
text-align: left;
}
tr.head th {
color: #e22726;
border-bottom: 2pt solid black;
text-align: center;
}
td div + div {
border-top: 1pt solid black;
}
td.keys {
text-align: center;
}
key {
display: inline;
font-family: monospace;
border: 0.6pt solid black;
border-radius: 1pt;
padding: 1pt;
line-height: 2.2em;
}
plus:after {
content: '\200b';
}
option:before {
content: '\1f527 ';
}
footref, footnote {
font-weight: normal;
vertical-align: super;
font-size: smaller;
}
.footnotes p {
margin: 0;
}
context {
display: block;
font-weight: normal;
font-size: smaller;
}
typename {
display: inline;
font-family: monospace;
font-weight: normal;
}
img.button, img.button90 {
width: 1.5em;
height: 1.5em;
margin: 2pt;
}
img.button90 {
transform: rotate(90deg);
}
h1 {
text-align: center;
}
img.logo {
margin-top: 200px;
}
p.fineprint {
position: absolute;
bottom: 0;
font-size: 50%;
}
}
@media screen {
page {
font-family: sans-serif;
display: block;
column-count: 3;
margin-bottom: 1em;
}
div.front {
page-break-inside: avoid;
}
table {
page-break-inside: avoid;
margin-left: auto;
margin-right: auto;
border-spacing: 0px;
margin-bottom: 1em;
}
tr.head th {
background: #e22726;
color: #fff;
font-weight: bold;
text-align: center;
border-radius: 8px 8px 0 0;
}
td div + div {
border-top: 1pt solid black;
}
tr:nth-child(even) {
background: #eee;
}
td, th {
padding: 8px;
text-align: left;
}
td.keys {
text-align: center;
}
key {
display: inline;
font-family: monospace;
font-size: larger;
background: #ccc;
border-radius: 2px;
padding: 3px;
line-height: 2em;
}
plus:after {
content: '\200b';
}
option {
display: inline;
background: url('images/document-properties.png') no-repeat left center;
padding-left: 20px;
}
tr.footnotes {
background: none;
}
tr.footnotes td {
background: #f9d3d3;
border-radius: 0px 0px 8px 8px;
}
footref, footnote {
display: inline;
font-weight: normal;
vertical-align: super;
font-size: smaller;
}
context {
display: block;
font-weight: normal;
font-size: smaller;
}
typename {
display: inline;
font-family: monospace;
font-weight: normal;
}
img.button, img.button90 {
background: #ccc;
margin-right: 1ex;
padding: 2px;
width: 16px;
height: 16px;
}
img.button {
border-left: 2px solid #ddd;
border-top: 2px solid #ddd;
border-right: 2px solid #aaa;
border-bottom: 2px solid #aaa;
}
img.button90 {
border-left: 2px solid #ddd;
border-bottom: 2px solid #ddd;
border-right: 2px solid #aaa;
border-top: 2px solid #aaa;
transform: rotate(90deg);
}
h1 {
text-align: center;
}
}
</style>
</head>
<body>
<page>
<table>
<tr class="head">
<th colspan="3">Key</th>
</tr>
<tr>
<th>Action
<context>Context</context></th>
<td class="keys"><key>Mods</key><plus>+</plus><key>Key</key></td>
<td>Menu → Path</td>
</tr>
<tr class="footnotes"><td colspan="3">
<p>The action may only be available in the given context.</p>
<p>❖ indicates the context menu, i.e., right-click.</p>
<p>The <key>Ctrl</key> key is replaced by the command <key>⌘</key> key on Macintosh.</p>
</td></tr>
</table>
<table>
<tr class="head">
<th colspan="3">Load Project/Program</th>
</tr>
<tr>
<th>New Project</th>
<td class="keys"><key>Ctrl</key>+<key>N</key></td>
<td>File → New Project</td>
</tr>
<tr>
<th>Open Project</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>O</key></td>
<td>File → Open Project</td>
</tr>
<tr>
<th>Close Project<footref>1</footref></th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>W</key></td>
<td>File → Close Project</td>
</tr>
<tr>
<th>Save Project<footref>1</footref></th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>S</key></td>
<td>File → Save Project</td>
</tr>
<tr>
<th>Import File<footref>1</footref></th>
<td class="keys"><key>I</key></td>
<td>File → Import File</td>
</tr>
<tr>
<th>Export Program</th>
<td class="keys"><key>O</key></td>
<td>File → Export Program</td>
</tr>
<tr>
<th>Open File System<footref>1</footref></th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>I</key></td>
<td>File → Open File System</td>
</tr>
<tr class="footnotes"><td colspan="3">
<p><footnote>1</footnote>
These actions are only available if there is an active project. Create or open a project first.
</p>
</td></tr>
</table>
<table>
<tr class="head">
<th colspan="3">Help/Customize/Info</th>
</tr>
<tr>
<th>Ghidra Help
<context>Hover on action</context></th>
<td class="keys"><key>F1</key></td>
<td>Help → Contents</td>
</tr>
<tr>
<th colspan="2">About Ghidra</th>
<td>Help → About Ghidra</td>
</tr>
<tr>
<th colspan="2">About Program</th>
<td>Help → About <i>program name<i></td>
</tr>
<tr>
<th colspan="2">Preferences</th>
<td>Edit → Tool Options</td>
</tr>
<tr>
<th>Set Key Binding
<context>Hover on action</context></th>
<td class="keys"><key>F4</key></td>
<td></td>
</tr>
<tr>
<th colspan="2">Key Bindings</th>
<td>Edit → Tool Options → <option>Key Bindings</option></td>
</tr>
<tr>
<th colspan="2">Processor Manual</th>
<td>❖ → Processor Manual</td>
</tr>
<tr class="footnotes"><td colspan="3">
</td></tr>
</table>
<table>
<tr class="head">
<th colspan="3">Markup</th>
</tr>
<tr>
<th><img class="button" src="images/undo.png"/>Undo</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Z</key></td>
<td>Edit → Undo</td>
</tr>
<tr>
<th><img class="button" src="images/redo.png"/>Redo</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Shift</key><plus>+</plus><key>Z</key></td>
<td>Edit → Redo</td>
</tr>
<tr>
<th><img class="button" src="images/disk.png"/>Save Program</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>S</key></td>
<td>File → Save <em>program name</em></td>
</tr>
<tr>
<th>Disassemble</th>
<td class="keys"><key>D</key></td>
<td>❖ → Disassemble</td>
</tr>
<tr>
<th>Clear Code/Data</th>
<td class="keys"><key>C</key></td>
<td>❖ → Clear Code Bytes</td>
</tr>
<tr>
<th>Add Label
<context>Address field</context></th>
<td class="keys"><key>L</key></td>
<td>❖ → Add Label</td>
</tr>
<tr>
<th>Edit Label
<context>Label field</context></th>
<td class="keys"><key>L</key></td>
<td>❖ → Edit Label</td>
</tr>
<tr>
<th>Rename Function
<context>Function name field</context></th>
<td class="keys"><key>L</key></td>
<td>❖ → Function → Rename Function</td>
</tr>
<tr>
<th>Remove Label
<context>Label field</context></th>
<td class="keys"><key>Del</key></td>
<td>❖ → Remove Label</td>
</tr>
<tr>
<th>Remove Function
<context>Function name field</context></th>
<td class="keys"><key>Del</key></td>
<td>❖ → Function → Delete Function</td>
</tr>
<tr>
<th rowspan="3">Define Data</th>
<td rowspan="3" class="keys"><key>T</key></td>
<td>❖ → Data → Choose Data Type</td>
</tr>
<tr></tr>
<tr>
<td>❖ → Data → <em>type</em></td>
</tr>
<tr>
<th>Repeat Define Data</th>
<td class="keys"><key>Y</key></td>
<td>❖ → Data → Last Used: <em>type</em></td>
</tr>
<tr>
<th>Rename Variable
<context>Variable in decompiler</context></th>
<td class="keys"><key>L</key></td>
<td>❖ → Rename Variable</td>
</tr>
<tr>
<th>Retype Variable
<context>Variable in decompiler</context></th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>L</key></td>
<td>❖ → Retype Variable</td>
</tr>
</table>
<table>
<tr>
<th>Cycle Integer Types</th>
<td class="keys"><key>B</key></td>
<td>❖ → Data → Cycle →
<typename>byte</typename>,
<typename>word</typename>,
<typename>dword</typename>,
<typename>qword</typename></td>
</tr>
<tr>
<th>Cycle String Types</th>
<td class="keys"><key>'</key></td>
<td>❖ → Data → Cycle →
<typename>char</typename>,
<typename>string</typename>,
<typename>unicode</typename></td>
</tr>
<tr>
<th>Cycle Float Types</th>
<td class="keys"><key>F</key></td>
<td>❖ → Data → Cycle →
<typename>float</typename>,
<typename>double</typename></td>
</tr>
<tr>
<th>Create Array<footref>2</footref></th>
<td class="keys"><key>[</key></td>
<td>❖ → Data → Create Array</td>
</tr>
<tr>
<th>Create Pointer<footref>2</footref></th>
<td class="keys"><key>P</key></td>
<td>❖ → Data → pointer</td>
</tr>
<tr>
<th>Create Structure
<context>Selection of data</context></th>
<td class="keys"><key>Shift</key><plus>+</plus><key>[</key></td>
<td>❖ → Data → Create Structure</td>
</tr>
<tr>
<th colspan="2">New Structure
<context>Data type container</context></th>
<td>❖ → New → Structure</td>
</tr>
<tr>
<th colspan="2">Import C Header</th>
<td>File → Parse C Source</td>
</tr>
<tr>
<th colspan="2">Cross References</th>
<td>❖ → References → Show References to <em>context</em></td>
</tr>
<tr class="footnotes"><td colspan="3">
<p><footnote>2</footnote>
When possible, arrays and pointers are created of the data type currently applied.
</p>
</td></tr>
</table>
<table>
<tr class="head">
<th colspan="3">Miscellaneous</th>
</tr>
<tr>
<th colspan="2">Select</th>
<td>Select → <em>what</em></td>
</tr>
<tr>
<th>Program Differences</th>
<td class="keys"><key>2</key></td>
<td>Tools → Program Differences</td>
</tr>
<tr>
<th><img class="button" src="images/play_again.png"/>Rerun Script</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Shift</key><plus>+</plus><key>R</key></td>
<td></td>
</tr>
<tr>
<th>Assemble</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Shift</key><plus>+</plus><key>G</key></td>
<td>❖ → Patch Instruction</td>
<tr class="footnotes"><td colspan="3">
</td></tr>
</table>
</page>
<page>
<table>
<tr class="head">
<th colspan="3">Navigation</th>
</tr>
<tr>
<th>Go To</th>
<td class="keys"><key>G</key></td>
<td>Navigation → Go To</td>
</tr>
<tr>
<th><img class="button" src="images/left.png"/>Back</th>
<td class="keys"><key>Alt</key><plus>+</plus><key>←</key></td>
<td></td>
</tr>
<tr>
<th><img class="button" src="images/right.png"/>Forward</th>
<td class="keys"><key>Alt</key><plus>+</plus><key>→</key></td>
<td></td>
</tr>
<tr>
<th><img class="button" src="images/down.png"/> <img class="button" src="images/up.png"> Toggle Direction</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Alt</key><plus>+</plus><key>T</key></td>
<td>Navigation → Toggle Code Unit Search Direction</td>
</tr>
<tr>
<th><img class="button" src="images/I.gif"/>Next Instruction</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Alt</key><plus>+</plus><key>I</key></td>
<td>Navigation → Next Instruction</td>
</tr>
<tr>
<th><img class="button" src="images/D.gif"/>Next Data</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Alt</key><plus>+</plus><key>D</key></td>
<td>Navigation → Next Data</td>
</tr>
<tr>
<th><img class="button" src="images/U.gif"/>Next Undefined</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Alt</key><plus>+</plus><key>U</key></td>
<td>Navigation → Next Undefined</td>
</tr>
<tr>
<th><img class="button" src="images/L.gif"/>Next Label</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Alt</key><plus>+</plus><key>L</key></td>
<td>Navigation → Next Label</td>
</tr>
<tr>
<th rowspan="3"><img class="button" src="images/F.gif"/>Next Function</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Alt</key><plus>+</plus><key>F</key></td>
<td>Navigation → Next Function</td>
</tr>
<tr></tr>
<tr>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>↓</key></td>
<td>Navigation → Go To Next Function</td>
</tr>
<tr>
<th>Previous Function</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>↑</key></td>
<td>Navigation → Go To Previous Function</td>
</tr>
<tr>
<th><img class="button" src="images/notF.gif"/>Next Non-function Instruction</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Alt</key><plus>+</plus><key>N</key></td>
<td>Navigation → Next Instruction Not In a Function</td>
</tr>
<tr>
<th><img class="button" src="images/V_slash.png"/>Next Different Byte Value</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Alt</key><plus>+</plus><key>V</key></td>
<td>Navigation → Next Different Byte Value</td>
</tr>
<tr>
<th><img class="button" src="images/B.gif"/>Next Bookmark</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Alt</key><plus>+</plus><key>B</key></td>
<td>Navigation → Next Bookmark</td>
</tr>
<tr class="footnotes"><td colspan="3">
</td></tr>
</table>
<table>
<tr class="head">
<th colspan="3">Windows</th>
</tr>
<tr>
<th><img class="button" src="images/notes.gif"/>Bookmarks</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>B</key></td>
<td>Window → Bookmarks</td>
</tr>
<tr>
<th colspan="2"><img class="button" src="images/binaryData.gif"/>Byte Viewer</th>
<td>Window → Bytes: <em>program name</em></td>
</tr>
<tr>
<th colspan="3"><img class="button90" src="images/viewmagfit.png"/>Function Call Trees</th>
</tr>
<tr>
<th colspan="2"><img class="button" src="images/dataTypes.png"/>Data Types</th>
<td>Window → Data Type Manager</td>
</tr>
<tr>
<th><img class="button" src="images/decompileFunction.gif"/>Decompiler</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>E</key></td>
<td>Window → Decompile: <em>function name</em></td>
</tr>
<tr>
<th colspan="2"><img class="button" src="images/function_graph.png"/>Function Graph</th>
<td>Window → Function Graph</td>
</tr>
<tr>
<th colspan="2"><img class="button" src="images/play.png"/>Script Manager</th>
<td>Window → Script Manager</td>
</tr>
<tr>
<th colspan="2"><img class="button" src="images/memory16.gif"/>Memory Map</th>
<td>Window → Memory Map</td>
</tr>
<tr>
<th><img class="button" src="images/registerGroup.png"/>Register Values</th>
<td class="keys"><key>V<span></td>
<td>Window → Register Manager</td>
</tr>
<tr>
<th colspan="2"><img class="button" src="images/table.png"/>Symbol Table</th>
<td>Window → Symbol Table</td>
</tr>
<tr>
<th colspan="2"><img class="button" src="images/table_go.png"/>Symbol References</th>
<td>Window → Symbol References</td>
</tr>
<tr>
<th colspan="2"><img class="button" src="images/sitemap_color.png"/>Symbol Tree</th>
<td>Window → Symbol Tree</td>
</tr>
<tr class="footnotes"><td colspan="3">
</td></tr>
</table>
<table>
<tr class="head">
<th colspan="3">Search</th>
</tr>
<tr>
<th>Search Memory</th>
<td class="keys"><key>S</key></td>
<td>Search → Memory</td>
</tr>
<tr>
<th>Search Program Text</th>
<td class="keys"><key>Ctrl</key><plus>+</plus><key>Shift</key><plus>+</plus><key>E</key></td>
<td>Search → Program Text</td>
</tr>
<tr>
<th colspan="2">Search For ...<ul>
<li>Matching Instructions</li>
<li>Address Tables</li>
<li>Direct References</li>
<li>Instruction Patterns</li>
<li>Scalars</li>
<li>Strings</li>
</ul></th>
<td>Search → For <em>what</em></td>
</tr>
<tr class="footnotes"><td colspan="3">
</td></tr>
</table>
<div class="front">
<img class="logo" src="images/GHIDRA_1.png"/ width="100%">
<h1>Ghidra Cheat Sheet</h1>
<p class="fineprint">
Ghidra is licensed under the Apache License, Version 2.0 (the "License"); Unless required by applicable law or
agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
</p>
</div>
</page>
</body>
</html>