Tools

What is Ghidra? Reverse engineering explained, with cats

How Ghidra, the NSA's free reverse engineering tool, turns a compiled program back into readable code, and how to track down a hidden feature inside Notepad.

  • 8 min read
  • 5 questions
  • +35 XP
Transcript

Ghidra, explained by cats. Kitty opens Notepad. Every day. For years. A blank page. Nothing else. One day she wonders. How does it work inside? But Notepad is just a file. Machine code. Numbers for computers. Not for cats. So Kitty opens Ghidra.

A free reverse engineering tool. Made by the NSA. Yes, that NSA. She drops Notepad in. Ghidra doesn't run it. It turns it back into readable code. But the names are gone. Every function is FUN, and a number. Not very fun.

So Kitty follows the clues. She lists the text inside. Menu words. Error messages. And one odd word. .LOG. She jumps to the code that uses it. Presses L. Renames it: log trick. It checks a file's first line. If it says.log, Notepad adds the date and time.

Every time it opens. Kitty tries it. types.log. Saves. Opens it again. There's the time. That's Ghidra. It turns programs back into code cats can read. Now Kitty knows how her Notepad works. Notepad still has no idea how Kitty works.