Small decoder tool to translate encoded data in Ghidra to decoded labelled arrays, optionally with comments.
Originally made to help decode non-ASCII text for a decompile I'm working on.
Download the latest release.
- Unzip the .zip release file.
- In the unzipped folder, open GhidraTextDecode\data\DecodeDictionary.txt
- Edit the dictionary as needed.
- Lines starting with # are ignored
- General format: ENCODED=DECODED
- Ghidra will interpret the hex byte value on the left as the text on the right of the =.
- When you are finished, zip the folder.
- In Ghidra, add the .zip extension with File->Install Extensions->(Plus)
- Restart Ghidra
- Open CodeBrowser, if prompted configure the extension. If not, enable it manually with File->Configure->(Plug in top right)->Check GhidraTextDecodePlugin.
- Highlight data you want decoded, right click, Text Decode, select which decode method you want:
- Decode: Standard decode, adds decoded labels and stops on unrecognized symbol.
- Decode w/ comments: Standard decode plus plate comments.
- Force decode: Standard decode, but doesn't stop on unrecognized symbol.
- Force decode w/ comments: Force decode plus plate comments.