oalabs
patreon
C++ Strings for Reverse Engineers
🕑 Added 2024-11-17 15:00:09 +0000 UTCidentifying and correctly typing C++ strings is the first step towards easier C++ reverse engineering. In this tutorial we walk through the mechanics (and code) behind the standard strings in C++
Resources
The C++ strings types header can be found here: cppstrings.h
Below is an IDA cheat sheet from @fr0gger_ which is helpful when trying to remember the hot keys.
Practice Examples
Attached are both the optimized and non-optimized compiled examples as well as the source file and accompanying PDB files. I strongly recommend attempting to mark up the types and reverse engineer the optimized version without loading the PDB ( you can use the PDB if you get stuck).
Comments
OALABS
lol!
Demonslay335
Rust and GoLang Strings: hold my beer. 😜