Windbg远程调试
ssooking Lv5

远程调试

要求:两台主机上都安装了windgb,且网络能够互通。

被调试机A

首先在被调试机上运行服务

方式一:WinDbg内开启服务器

如果你已在被调试机上本地启动windbg调试某一程序,可以在windbg命令窗口中执行:

1
.server tcp:port=6666

方式二:使用dbgsrv.exe

1
dbgsrv.exe -t tcp:port=6666

调试机B

在被调试机器上成功运行Server后,在调试机上打开Windbg,接着File→Connect to Remote Stub,输入

1
tcp:Port=6666,Server=<IP of Machine A>

这里需要设置适当的参数。

你将看到File→Open Executable已无法选择,但你可以通过File→Attach to a process附加到进程 .这时可在机器A上看到进程列表。

如果要在机器A停止服务器,可用Task Manager(任务管理器)接着kill dbgsrv.exe。

Reference

使用 WinDbg 进行远程调试

Exploit开发系列教程-Windbg

  • Post title:Windbg远程调试
  • Post author:ssooking
  • Create time:2020-01-20 23:42:00
  • Post link:https://ssooking.github.io/2020/01/windbg远程调试/
  • Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.