Cdb.exe

Debugging tool included with Windows Debugging Tools.

Paths

  • C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe
  • C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\cdb.exe

Commands

Execute

Launch 64-bit shellcode from the specified .wds file using cdb.exe.

Use case: Local execution of assembly shellcode.

Privileges: User

cdb.exe -cf {PATH:.wds} -o notepad.exe

Execute

Attaching to any process and executing shell commands.

Use case: Run a shell command under a trusted Microsoft signed binary

Privileges: User

cdb.exe -pd -pn {process_name}
.shell {CMD}

Execute

Execute arbitrary commands and binaries using a debugging script (see Resources section for a sample file).

Use case: Run commands under a trusted Microsoft signed binary

Privileges: User

cdb.exe -c {PATH:.txt} "{CMD}"

Detection

Resources