如何通过 Powerdbg 的 "New-DbgSession" 命令加载转储?

How can I load a dump thru Powerdbg's "New-DbgSession" command?

我正在尝试使用 Powerdbg module 来分析内核转储。我已经成功安装了模块。但是我无法开始新的 session。

New-DbgSession -dump F:\Downloads1715-61105-01.dmp

但是它会打开一个标题为 "CDB.exe" 的空白命令提示符并且什么都不做。我的机器上安装了 Windbg。并且“debuggerroot”变量正确地指向了它的路径。我做错了什么?

codeplex Powerdbg 讨论页面未激活。

我一直想试试这个所以我下载了最新的包并测试它结果如下,看看你是否可以通过它

我创建了一个 bat 文件,它将 DebuggingTools 环境变量设置为 windows 8.0 调试器安装(xp 虚拟机) 在 bat 文件中,我使用 Import-module 调用 powershell 当我收到 ps 命令提示符时,我启动了一个新的详细 dbgSession,其中的转储文件 test.dmp 位于 c:\

:dir /b
Install_PowerDbg.bat
PowerDbg.psm1
PowerDbgConsole.ps1
PowerDbg_6.10.10.22.zip
runpdbg.bat

:type runpdbg.bat
set DebuggingTools=c:\Program Files\Windows Kits.0\Debuggers\x86
c:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -nologo -noexit -comma
nd "Import-Module" .\powerdbg.psm1
:runpdbg.bat

:set DebuggingTools=c:\Program Files\Windows Kits.0\Debuggers\x86

:c:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -nologo -noexit -comm
and "Import-Module" .\powerdbg.psm1
WARNING: Some imported command names include unapproved verbs which might make
them less discoverable.  Use the Verbose parameter for more detail or type
Get-Verb to see the list of approved verbs.
WARNING: Some imported command names contain one or more of the following
restricted characters: # , ( ) {{ }} [ ] & - / \ $ ^ ; : " ' < > | ? @ ` * % +
= ~
PS C:\Documents and Settings\Admin\Desktop\PowerDbg_6.10.10.22> New-DbgSession -
verbose -dump C:\test.dmp
VERBOSE: Using debugging tools from c:\Program Files\Windows
Kits.0\Debuggers\x86
VERBOSE: c:\Program Files\Windows Kits.0\Debuggers\x86\CDB.exe -z C:\test.dmp
VERBOSE:

Verb                    :
Arguments               : -z C:\test.dmp
CreateNoWindow          : False
EnvironmentVariables    : {pathext, homepath, symbol_path, clientname...}
RedirectStandardInput   : True
RedirectStandardOutput  : True
RedirectStandardError   : True
StandardErrorEncoding   :
StandardOutputEncoding  :
UseShellExecute         : False
Verbs                   : {Enable/Disable Digital Signature Icons, open, Open
i
                          n PPEE (puppy), Open with CFF Explorer...}
UserName                :
Password                :
Domain                  :
LoadUserProfile         : False
FileName                : c:\Program Files\Windows
Kits.0\Debuggers\x86\CDB.e
                          xe
WorkingDirectory        : C:\Documents and
Settings\Admin\Desktop\PowerDbg_6.10
                          .10.22
ErrorDialog             : False
ErrorDialogParentHandle : 0
WindowStyle             : Normal



VERBOSE: RX (discard)
VERBOSE: TX: .echo PowerDbg connected
VERBOSE: RX: PowerDbg connected
VERBOSE: RX: 0:000> PowerDbg_Complete_184742.640
VERBOSE: RX Complete
VERBOSE: RX (discard) 0:000>
VERBOSE: TX: .printf "%d\n", @$ptrsize
VERBOSE: RX: 4
VERBOSE: RX: 0:000> PowerDbg_Complete_184742.656
VERBOSE: RX Complete
VERBOSE: Connected to 32 bit process/dump
PS C:\Documents and Settings\Admin\Desktop\PowerDbg_6.10.10.22>

此命令似乎也能正确启动会话(您可能需要在 powerdbg 的 $searchpath 中显式添加调试器路径。psm1 line arount 440 in function Get-DbgToolsLocation()

powershell.exe -nologo -noexit -File PowerDbgConsole.ps1 -verbose -dump c:\test.dmp