Skip to content

Instantly share code, notes, and snippets.

@marshal20
marshal20 / pdburl.py
Created February 11, 2025 12:28
Command line tool to get program database (PDB) debug symbols file URL from windows server. With options to download the PDB file directly.
#!python3
"""
Command line tool to get program database (PDB) debug symbols file URL from windows server.
With options to download the PDB file directly.
Credits to **Barakat@github** for the original script, though it didn't work without modifications:
https://gist.github.com/Barakat/e20ec993748c6ab382d727f08eaa523e
I fixed the GUID calculation which were ignoring Signature_Data5 and Signature_Data6 thus not creating a complete GUID.
Also I added the ability to download the file directly and a simple command line functionality.