Get the latest tech news

"Unstripping" binaries: Restoring debugging information in GDB with Pwndbg


By Jason An GDB loses significant functionality when debugging binaries that lack debugging symbols (also known as “stripped binaries”). Function and variable names become meaningless addresses; se…

That’s why this summer at Trail of Bits, I extended Pwndbg —a plugin for GDB maintained by my mentor, Dominik Czarnota —with two new features to bring the stripped debugging experience closer to what you’d expect from a debugger in an IDE. A common pain point when debugging executables compiled from non-C programming languages (and sometimes even C) is that they tend to have complex memory layouts that make it hard to dump values. Using the Go compiler’s source code as a reference, I implemented dumping for all of Go’s built-in types, including integers, strings, complex numbers, pointers, slices, arrays, and maps.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of information

information

Photo of binaries

binaries

Photo of GDB

GDB

Related news:

News photo

World’s 1st petahertz-frequency mixer advances ultra-fast communication tech | Petahertz-frequency mixers would enable the transmission and processing of vastly larger amounts of information at many times higher speeds.

News photo

AI worse than humans in every way at summarising information, trial finds

News photo

GNU DDD 3.4.1 Released As GUI Front-End To GDB