Re windbg

From dslsdzc/rev-skills · View interactive version

Re windbg is an AI agent skill from the GitHub repository dslsdzc/rev-skills. WinDbg 调试(Windows 用户态+内核)。触发词:WinDbg、windbg、内核调试、kd、!analyze

How to use this skill

Skill file

WinDbg 动态调试(Windows 用户态 + 内核)

何时使用 / 何时不用

工具准备

参考 [[re-analyze/platform-tips]] Windows 分支——attach 需要管理员权限;调试属动态执行,默认沙箱内进行([[re-analyze/platform-tips]] 最高原则)。

WinDbg(微软商店版 / Windows SDK / WDK)

Windows 符号(Windows SDK 符号 / 公共符号服务器)

双机/虚拟机内核调试环境

TTD(时间旅行调试,Windows 10 1903+)

操作步骤

  1. 附加/启动用户态目标:
  1. 断点 / 单步 / 寄存器:
  1. 异常分析 !analyze -v:
  1. 内核调试(双机 / VM / 本地 kd):
  1. 扩展命令:
  1. TTD 回放(校验/解密逻辑慢查):

```

ttd.exe -out C:\traces target.exe # 录制

WinDbg 打开 .run → g- / t- / p- # 往回跑

!tt 50 # 跳到轨迹 50% 处

!tt 7213:36 # 跳指定位置(事件序号:步数)

```

  1. 伪寄存器与脚本化(简单自动化):

跨域联合

常见坑与陷阱

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.