A Python script to download PDB files associated with a Portable Executable (PE).
- Download PDB symbols from
msdl.microsoft.com
. - Process a single or a batch of PortableExecutable (PE) files.
pdbdownload is available on PyPi:
python3 -m pip install pdbdownload
$ ./pdbdownload.py -h
usage: pdbdownload.py [-h] (-f PE_FILE | -d PE_DIR) [-S SYMBOLS_DIR] [-v]
Description message
optional arguments:
-h, --help show this help message and exit
-f PE_FILE, --pe-file PE_FILE
-d PE_DIR, --pe-dir PE_DIR
-S SYMBOLS_DIR, --symbols-dir SYMBOLS_DIR
Output dir where symbols will be downloaded.
-v, --verbose Verbose mode. (default: False)
To recursively download the PDBs of all executables in a folder, use:
pdbdownload -d . -S .
Pull requests are welcome. Feel free to open an issue if you want to add other features.