/pdbdownload

A Python script to download PDB files associated with a Portable Executable (PE)

Primary LanguagePython

A Python script to download PDB files associated with a Portable Executable (PE).
GitHub release (latest by date) YouTube Channel Subscribers

Features

  • Download PDB symbols from msdl.microsoft.com.
  • Process a single or a batch of PortableExecutable (PE) files.

Installation

pdbdownload is available on PyPi:

python3 -m pip install pdbdownload

Usage

$ ./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)

Example

To recursively download the PDBs of all executables in a folder, use:

pdbdownload -d . -S .

Contributing

Pull requests are welcome. Feel free to open an issue if you want to add other features.