176 points · by winsdk · 2y ago · 16 comments
I’m excited to share a project I’ve been working on throughout my university studies. It’s called BiTE (https://github.com/WINSDK/bite) and it's a tool primarily focused on being an executable viewer with reverse engineering capabilities.
BiTE supports Windows, MacOS, and Linux, along with their associated executable formats. It’s also capable of parsing and displaying debug information using DWARF/PDB formats, which I hope will be useful even for just comparing codegen.
I’ve put a lot of effort into this and it's the first time I'm releasing something like this publicly. Any feedback, bug reports, or feature suggestions would be greatly appreciated!
I've ended up doing the following to leverage that SYM file:
- build a placeholder ELF program by hand in the shape of the missing executable, but with all sections being NOBITS
- import this placeholder program into Ghidra
- write a Ghidra script to layer the information inside the SYM file on top of the placeholder program
- perform a version tracking session from the placeholder to the real executable, to port the debugging information onto a tangible artifact
My point is, have you thought about the capability to view a debugging data file without having the executable file? This use-case is admittedly a bit fringe, but it can happen with split executable/debug files.