SkillAgentSearch skills...

GhidraStackStrings

Hacky scripts to fixup stack strings in Ghidra's decompiler.

Install / Use

/learn @SamL98/GhidraStackStrings
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Ghidra Stack Strings

This project provides a first-pass hack for getting stack strings to display in Ghidra's decompiler window.

Here's an example of the results:

orig

to

new

The methodology is detailed in here

Dependencies

This project has dependencies?! Yep. Ghidra's built-in assembler kept yelling at me so at 2am, I decided to give up and call rasm2 as a subprocess. So yeah. You're gonna need radare2. Or some familiarity with the Ghidra API.

Warnings

Most of this code was hacked together at the wee hours of the night. Therefore, let's just say it's not production quality. There's also some hacks in the code that were specific to the binary I was looking at while developing this. I don't think it's gonna hurt on other binaries (y'never know) but it's unnecessary nonetheless.

Yoour binary also needs strcpy for the script to work.

Usage

Copy all the scripts to ~/ghidra_scripts or add this directory to the Ghidra script search paths. Then run deoptimizer.py.

Related Skills

View on GitHub
GitHub Stars36
CategoryDevelopment
Updated6mo ago
Forks1

Languages

Python

Security Score

67/100

Audited on Sep 17, 2025

No findings