3 ms·
Hacked GDB Dashboard Puts It All on Display
- smitty1e 5y ago"Some of my favorite interfaces are graphical." However, accomplishing tasks with textual, batch-oriented interfaces seems easier to script, version, and integrate.
- skywal_l 5y agoNice! There is already a TUI in gdb albeit not as good looking. For more info, there is a quick talk about it and other niceties that you may not know about: https://www.youtube.com/watch?v=PorfLSr3DDI https://www.youtube.com/watch?v=PorfLSr3DDI
- danhorner 5y agoThis is a great presentation. A similar project worth mentioning is Voltron, which can decorate your gdb session with accesory windows. (Use tmux for window layout). No experience with this dashboard but looking forward to trying it.
- enragedcacti 5y agoThere are a lot of these types of tools already in the reverse engineering community (in order of lowest chance of breaking when you throw really weird stuff at it, in my experience): GEF: https://gef.readthedocs.io/en/master/ https://gef.readthedocs.io/en/master/ PWNDBG: https://github.com/pwndbg/pwndbg https://github.com/pwndbg/pwndbg PEDA: https://github.com/longld/peda https://github.com/longld/peda They also come with a slew of different features to aid in RE/exploit dev, but many of them are also useful for debugging really weird issues. Also if you don't need all the info these provide or just want to augment them, the tool you are looking for is "hook-stop" which allows you to execute a string of commands every time GDB pauses program execution.
- cyberpunk 5y agoI really like PWNDBG, as it goes. But I am trying to spend more time with the Ghidra debugger, which is ... kind of pants, but it's getting better and it's pretty nice to have everything in one place. :}
- synergy20 5y agoI tried to promote gdb-dashboard a few days ago at HN but it did not fly. gdb-dashbard is different from those reverse-engineering gdb-hacks in that, it is more for normal debugging with a better looking TUI than the default gdb tui interface. gdb's support for python scripting made all these possible.
- mark_undoio 5y agoI like TUI but used to find it a bit flaky and inconsistent. I understand it's had a fairly recent code-level revamp. GDB has also added Python extension support for it: https://sourceware.org/gdb/current/onlinedocs/gdb/TUI-Windows-In-Python.html https://sourceware.org/gdb/current/onlinedocs/gdb/TUI-Window... It will be interesting to see if things like GDB Dashboard benefit from being implemented in this way in future.
- lowbloodsugar 5y agoI miss SoftIce.
- lsllc 5y agoAnyone remember Periscope? It was a DOS debugger with the hardware button attached to the NMI pin on the chip to break in even if interrupts are disabled! It was awesome. Still unequalled if you ask me, although gdb-dashboard comes pretty close. EDIT: A quick bit of searching yielded a scanned copy of the manual courtesy of the os2museum.com: https://www.os2museum.com/files/docs/periscope/periscope-manual-m54.pdf https://www.os2museum.com/files/docs/periscope/periscope-man...
- matja 5y agoBeing able to enter a debugger on NMI is great because now you can trigger the NMI from any set of hardware conditions too - you can connect logic gates to the address bus to decode a range of addresses, "and" it with the memory write assert pin or IORQ pin and now you have hardware breakpoints for a machine that didn't originally support it.
- bogomipz 5y agoThis is neat. Can someone say what the "encrypt+" column to the left of the the Op code is in the screenshot?
- Graziano_M 5y ago"encrypt" is just the name of the function being debugged. The `+x` is the byte offset in that function.
- jeffbee 5y agoIt’s the instruction offset from a function entry point.
- xsuu 5y agoI remember the quite minimal CGDB interface. https://cgdb.github.io/ https://cgdb.github.io/
- sreevisakh 5y agoDashboard has been around for a while. It helped me back when I learned GDB for the first time. Though you still have to learn the GDB commands, dashboard makes it a more visual experience. GDB felt clearer and more modern with it. It's better than the built-in TUI in my opinion.
- amelius 5y agoLooks nice, but usually I'm not very interested in the assembly instructions.
- isoblvck 5y agopwndbg and splitmind are fantastic out of the box too.
- StillBored 5y agoWell that's a masterful stroke. I use GDB all the time not only for userspace but also the kernel. Its always sorta painful though for the exact reason that using tui and getting it to display variables, code, dissasembly, etc tends to require jumping through about 20 commands (usually via a gdb script) to see how the behavior is changing over time. So, I'm not really sure why it took this long to catch up to the TUI debuggers from the late '80's (ala turbo debugger/etc). Makes me want to integrate some of these windows with the kernel gdb scripts.