All Projects → ajkhoury → pdbfetch

ajkhoury / pdbfetch

Licence: Apache-2.0 license
Fetch PDB symbols directly from Microsoft's symbol servers

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to pdbfetch

Pudb
Full-screen console debugger for Python
Stars: ✭ 2,267 (+6769.7%)
Mutual labels:  pdb, debug
docker-pudb
Debug Python code within a Docker container remotely from your terminal using pudb
Stars: ✭ 18 (-45.45%)
Mutual labels:  pdb, debug
lux
👾 Fast and simple video download library and CLI tool written in Go
Stars: ✭ 19,266 (+58281.82%)
Mutual labels:  downloader
OnlyFans
Scrape all the media from an OnlyFans account - Updated regularly
Stars: ✭ 573 (+1636.36%)
Mutual labels:  downloader
symreader-converter
Converts between Windows PDB and Portable PDB formats.
Stars: ✭ 50 (+51.52%)
Mutual labels:  pdb
angular-downloader
Angular Downloader is an angularjs directive that enables you to manage browser download - https://720kb.github.io/angular-downloader
Stars: ✭ 16 (-51.52%)
Mutual labels:  downloader
mmdl
MMDL (Mega Music Downloader) - A tool to easily download music.
Stars: ✭ 29 (-12.12%)
Mutual labels:  downloader
logserver
web log viewer that combines logs from several sources
Stars: ✭ 20 (-39.39%)
Mutual labels:  debug
util
封装了一些Java常用的功能
Stars: ✭ 19 (-42.42%)
Mutual labels:  downloader
yutto
🧊 一个可爱且任性的 B 站视频下载器(bilili V2)
Stars: ✭ 383 (+1060.61%)
Mutual labels:  downloader
patreon-dl
A Patreon Image Downloader
Stars: ✭ 52 (+57.58%)
Mutual labels:  downloader
Pyaiodl
A python Asynchronous Downloader - Pyaiodl
Stars: ✭ 40 (+21.21%)
Mutual labels:  downloader
downloader
Async rate-limited downloading service
Stars: ✭ 18 (-45.45%)
Mutual labels:  downloader
instagram-liked-posts-downloader
Download liked (or all) posts from an Instagram profile.
Stars: ✭ 19 (-42.42%)
Mutual labels:  downloader
youtube-dl-batch
Simple batch files for simplifying basic usage of https://github.com/rg3/youtube-dl Windows .exe releases
Stars: ✭ 55 (+66.67%)
Mutual labels:  downloader
UnitySettings
Runtime debugging menu (like setting on Android) for Unity.
Stars: ✭ 26 (-21.21%)
Mutual labels:  debug
node-wetransfert
Download wetransfert content with nodeJS
Stars: ✭ 16 (-51.52%)
Mutual labels:  downloader
live-platform
Add breakpoints, logs, metrics, and spans to live production applications
Stars: ✭ 37 (+12.12%)
Mutual labels:  debug
YouTube-MA
💾 YouTube video metadata archiver written in Golang
Stars: ✭ 17 (-48.48%)
Mutual labels:  downloader
SQLite.viewer
An elegant library for debugging sqlite databases in iOS applications
Stars: ✭ 73 (+121.21%)
Mutual labels:  debug

pdbfetch

A cross platform standalone cli application written in Go that fetches PDB symbol files directly from Microsoft's symbol servers by parsing an associated PE formatted executable.

Usage

pdbfetch pefile [directory]

Windows

pdbfetch ExamplePE.exe "C:\symbols"

Unix

pdbfetch ExamplePE.exe "/usr/share/symbols"

How

By parsing a given PE file's IMAGE_DIRECTORY_ENTRY_DEBUG directory for PDB symbol information of type IMAGE_DEBUG_TYPE_CODEVIEW, and compiling a valid symbol server URL. The PDB Name, Signtaure, and Age fields are used to compile the symbol download URL.

The Name is the name (or path?) of the PDB that is emitted by the linker.

The Signtaure is a Windows formatted 128-bit GUID that is emitted by the linker.

The Age is the version of the same PDB (or simply the number of times the PDB file has been written by the linker).

Compiling the link is as simple as:

https://msdl.microsoft.com/download/symbols/{PDB_NAME}/{PDB_GUID}+{PDB_AGE}/{PDB_NAME}

Let's take for example netbios.sys. The following PDB symbol information is extracted from the PE:

PDB Name: netbios.pdb
PDB GUID: 109096de-2cf2-44bd-8d03-0e5473c5253a
PDB Age:  1

The resulting valid symbol link for this is:

http://msdl.microsoft.com/download/symbols/netbios.pdb/109096DE2CF244BD8D030E5473C5253A1/netbios.pdb

References

This would not have been so simple without the help of PDB-Downloader:

https://github.com/rajkumar-rangaraj/PDB-Downloader

Special thanks to Sam O (and Ero Carrera) for a great start to a PE file parser in golang:

https://github.com/soluwalana/pefile-go

LLVM PDB Documentation:

https://llvm.org/docs/PDB/PdbStream.html#matching-a-pdb-to-its-executable

https://github.com/llvm/llvm-project/blob/master/llvm/include/llvm/Object/CVDebugRecord.h

License

This project is licensed under the Apache 2.0 license.

Additional licenses pertaining to this project can be found under the LICENSES sub-folder.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].