Remote Kernel Debugging with WinDbg

远程调用内核接口(remote call kernel) RCK(remote call kernel 缩写)为远程调用内核, 其通讯协议为自定义数据流协议。 RCK 负责远程调用过程中的数据组织, 并不关心实际物理通讯协议, 实则属于逻辑层通讯 协议。 RCK 通讯槽接口(RCKSlot)负责数据接收和发送, 属于通讯的适配层, 由第三方来实现 实际的数据传输接口。 阅读详情

The standard way to use Microsoft's WinDbg debugger is to connect two PC's with a null modem cable. This configuration is fine for the initial development of a driver. As soon as you unleash your code on the unsuspecting world, you need a slightly more sophisticated model. The documentation can be daunting because it covers every possible permutation of debugger and transport protocol. WinDbg has evolved at such breakneck speed that the documentation has struggled to keep up. The Debugger has a multitude of different users, with different needs and different backgrounds.

In this article, I will illustrate a straightforward and extensible approach to integrating an additional Remote Host computer using a network connection. I will also demonstrate how this simple model can be extended to produce debugger configurations of dazzling complexity. Using the simple steps I'll outline here you can diagnose machine specific problems from the tranquillity of your office and have multiple developers simultaneously poring over the same debugging session. All of the material presented here is covered in the WinDbg documentation, but I found it challenging extrapolating the relevant nuggets of information. I aim to alleviate this chore for other developers.

Review of the Standard Target and Host Setup

The WinDbg documentation does a good job of describing the standard kernel debugging setup, but it is worth reviewing briefly. The simplest configuration for kernel debugging uses two computers: a Target Machine that runs the driver under test and a Host Machine that runs the debugger.  Figure 1 depicts this configuration:-

 

Figure 1 Target and Host.

 

Figure 1. Target and Host.

I am not going to explore this configuration in any detail. You normally place the source for your driver on the Host Machine, which is also your personal development machine. In addition, the driver symbols (a byproduct of the build process) will probably be on the Host as well. This simple configuration has the benefit of simplicity, but it severely limits our options for remoting the debug session. In an environment where multiple developers are working on a project, we need to ensure that both the Source and the Symbols are in a central place rather than on a development machine that isn't widely accessible. Centralizing source and symbols opens up a load of debugging possibilities.

Getting the Symbols and Source off the Host

In this scenario we are going to clear our Source and Symbols off the Host Machine and archive all of it off onto a Server. I am going to describe how to configure the Target and Host at a genteel pace, before quickly checking that it works. This setup forms the basis for the more esoteric configurations in the following sections. Figure 2 shows the Host, Target and Server.

Figure 2 Target, Host and Server.
Figure 2. Target, Host and Server.

The Target Machine has been setup with a shrink wrap XP installation. The only "tweak" is a modified boot.ini file. The boot.ini file contains a list of the alternative operating systems that you can boot from the main partition. Right after you install Windows XP, there will be just one entry in this file. We want to modify boot.ini to enable us to hookup a debugger to the serial port. The easiest way to edit this file is to open a command prompt, change the attributes for the file, and launch Notepad:

C:/> attrib -s -h -r boot.ini
C:/> notepad boot.ini

 

Now edit the boot settings to add /debugport and /baudrate switches in the [operating systems] section.

[boot loader] timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)/WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)/WINDOWS="Microsoft Windows XP Professional" /fastdetect /debugport=COM1 /baudrate=115200


The next time you boot the target machine, the new switches will cause the kernel to wait until it can attach to WinDbg before proceeding.

In this configuration, you install WinDbg on the host machine. I am using version 6.1.0.0017.2, but this will undoubtedly be out of date before I reach the end of this paragraph. We need to set some environment variables to ensure that the debugger can resolve both the operating system symbols and the symbols for my drivers. We also need to ensure that the Host's baudrate matches the baud rate we specified in the Target Machine's boot.ini. COM1 is the default serial port, so we don't need to specify that.

Let's suppose that we've put all the symbols and source on the Sysphus server. Here are the environment variables we need to set up on the Host Machine.

_NT_DEBUG_BAUD_RATE=115200
_NT_SYMBOL_PATH=SRV*//Sysphus/softshared/symbols/SymStore*http://msdl.microsoft.com/download/symbols
_NT_ALT_SYMBOL_PATH=//Sysphus/softshared/symbols/KillerApp/sym
_NT_SOURCE_PATH=//Sysphus/softshared/symbols/KillerApp/sym


Figure 3 illustrates the Source and Symbol configuration described by these environment settings. The debugger needs to find both the symbols and the source for the binaries running on the Target. We don't particularly care how they got onto the server. They could have been transferred to the server from a build on the Host Machine, or they may have been archived here. If the debugger running on the Host needs to match up OS symbols it will first look in Symstore on the Sysphus server. If this search fails, the debugger will attempt to transfer the symbols from the Microsoft symbol server. Storing OS symbols on a local server means that other developers will not have to download symbols from the Microsoft server -- they can point their debugger at the server and retrieve the local copies. This saves both time and disk space.

Figure 3 Symbols and Source.
Figure 3. Symbols and Source.


Let's Go!

Let's just test that this actually works. I have my latest drivers installed on the Target Machine and WinDbg is waiting to be invoked on the Host. The hardware is waiting to be plugged in and everything's ready to roll. The target is turned off.

  • Invoke WinDbg on the Host. Enter this command from a command prompt:

C:/> WinDbg -k

WinDbg should start up and display

Microsoft (R) Windows Debugger Version 6.1.0017.2
Copyright (c) Microsoft Corporation. All rights reserved.
Opened //./com1
Waiting to reconnect...

  • Turn On the Target. WinDbg will display the following

Connected to Windows XP 2600 x86 compatible target, ptr64 FALSE
Kernel Debugger connection established.
Symbol search path is: //Sysphus/softshared/symbols/KillerApp/sym;SRV*//Sysphus/softshared/symbols/SymStore*http://msdl.microsoft.com/download/symbols
Executable search path is:
Windows XP Kernel Version 2600 MP (1 procs) Checked x86 compatible
Built by: 2600.xpsp1.020828-1920

  • Set a break point

bp SaiNtHid!DriverEntry
  • Insert the device

  • We're in business.

Figure 4 Contact!
Figure 4. Contact!
The debugger has correctly grabbed the source from the server. Now let's ponder how we can leverage the server for some real power debugging.
Adding a Remote Host

You may have wondered why I depicted the Host machine as a laptop. If you have a building full of computers, any of which is likely to have some weird interaction with your driver, using a laptop is a quick and easy way of enabling remote debugging on any machine it's attached to. We need only make a slight change to the scenario we have already examined. Our invocation of WinDbg is going to have to change to reflect a new role for the Host: we need to tell WinDbg that it has been promoted to a server.

C:/> WinDbg -server tcp:port=3001 -k

To start the debug server we need a TCP/IP socket number. Your network administrator will be able to give you a valid number, but be prepared for lengthy discussions about firewalls and network security. Doughnuts should help. The socket number I have been given for this Host Machine is 3001. If you ARE the network administrator, or are entrusted with the grave responsibility of selecting your own socket number, see the links in the Assigning a TCP/IP Socket Number Note.

NOTE - Assigning a TCP/IP Socket Number

These links should help you figure out which TCP/IP sockets to use:

http://www.iana.org/assignments/port-numbers

http://www.faqs.org/rfcs/rfc793.html

http://www.petri.co.il/tcp_ip_links_and_articles.htm


 

You can still control your debug session from the Host computer. The role of the Host has been enhanced, rather than subverted, by setting it up as a server. A second developer can now join the debug session, as illustrated in Figure 5.

Figure 5 Adding a Remote Host.
Figure 5. Adding a Remote Host.

The second developer can now join the debug session on the //DEEPTHOUGHT Remote Host computer by issuing this command from a command prompt:

C:/> windbg -remote tcp:server=//Jolwhqldev-xp,port=3001 -srcpath //Sysphus/softshared/symbols/KillerApp/src

This syntax should be self explanatory, but it is worth noting that the Remote Host does not need to set up the symbols. The association between the binaries on the Target and the Symbols on the Server is set up by the "real" Host machine (the laptop in all my pictures). In addition to describing the connection to the Host with the server name and port number, we need to ensure that our session can access the source on the server. Depending on the debugging scenario we may choose to limit the role of the Host machine, see the Attack of The Drones note for more on this.

WinDbg should respond with something like the following

nt!RtlpBreakWithStatusInstruction:
80aaadcc cc int 3
DEEPTHOUGHT/jwr (tcp 10.1.2.4:3389) connected at Tue Feb 25 2003

Now that the Remote Host is connected we can break into the session and set break points in exactly the same way we did in our initial experiments.

Attack of The Drones

If the Host is not manned we can set it up as a "drone" computer. The Host does not need the source at all in this situation. If the Host is a roaming laptop, it is probably a very good idea to prevent the machine from having access to the source. In fact we could avoid the overhead of a GUI by using KD.EXE as our Host debugger instead of WinDbg. The WinDbg Session running on the Remote Host will connect to this session in exactly the same way, regardless of whether KD or WinDbg is running on the host. We can invoke KD with exactly the same environment variable settings that we used in our initial configuration of the Host. (Of course, it is not necessary to set the _NT_SOURCE_PATH variable since KD won't be accessing the source.)

You can also append the -noio flag to ensure maximum inscrutability from KD. This will ensure that the debugger generates no output on the server machine. If you are unused to the KD debugger, this is certainly the preferred operating mode.

The flags do differ slightly between WinDbg and KD. Since KD is never anything but a kernel debugger, we don't need to use the -k switch. However -k is used to specify the Target connection. The following examples should illustrate the point.

  •  

  • To launch KD on the Host, using TCP port 3001 and COM1:

     

C:/> kd -server tcp:port=3001 -noio

 

 

  • To launch KD on the Host, using port 3002 and COM2 instead (here we need the -k switch):

     

C:/> kd -server tcp:port=3002 -k com:port=com2 -noio

I tend to have a machine set up like this with KD invoked in the registry run section, so that a naive or occasional user can simply turn on the machine and start a debug session, to which a developer can attach from a Remote Host.

Adding Multiple Remote Hosts

You can extend the single Remote Host concept to allow Multiple Remote Hosts to join the debugging session. The scenario I presented above is geared toward the lone developer. Additional developers can join the same debug session in exactly the same way. Figure 6 shows an additional Remote Host on the network.

Figure 6 Adding Another Remote Host.
Figure 6. Adding Another Remote Host.

We can connect to the Real Host is exactly the same as we did in "Adding a Remote Host". You can also connect to the session using the WinDbg GUI.

Using the WinDbg GUI to connect to a Remote Session

Using the GUI to connect to the Remote Host machine is only slightly more complex and arcane than using the command line. We need to set up the Server and Source Path, using two dialogs accessible in the file menu.

Step 1. Connecting to a Remote Session
Step 1. Select Connect to a Remote Session .
Step 2. Connecting to a Remote Session
Step 2. Enter the Debug Server and TCP/IP socket .
Step 3. Connecting to a Remote Session
Step 3. Set up the Source Path .


Adding Multiple Targets to a single Host

Adding a second Target machine is also pretty straightforward. All we need is a second com port and a second TCP/IP socket. Initially we used com1 to connect to the Target, so we will use com2 to connect up the Second Target machine. We will need to invoke a separate WinDbg for each Target. To check that this works we can start up the Host for the COM1 Target using the steps in Review of the Standard Target and Host Setup.

Here are the additional steps to prepare for debugging of a second Target:

  • First we need to set up the new Target for local debugging on the Host. This will enable us to verify that the serial connections between the Host and new Target are correct. Recall that WinDbg defaults to COM1. Our existing Target is using COM1. The new Target will use COM2. So the invocation for the second instance of WinDbg becomes:-

C:/> WinDbg -k com:port=Com2

Now we have two debug sessions running on the Host.

  • To enable Remote Hosts to connect to either of these Debug Sessions We need a second TCP/IP socket. Recall that our original Target was assigned the socket 3001. I am going to associate 3002 with the second Target attached to com2.

    Shut down the new, local only, debug session and type the following:-

C:/> WinDbg -server tcp: port=3002-k com:port=com2

Now multiple Remote Hosts can connect to either of these debug sessions by specifying the correct TCP/IP socket. This is an ideal scenario for a Test Lab. A single computer can host a debug session for each test machine, using multiple com ports.

Figure 7 shows a basic Multiple Target setup.

Figure 7. Multiple Targets
Figure 7. Multiple Targets .

Why would I want to do this?

Let's look at a concrete example of the multiple Target setup in action. Let's suppose I have some code that demonstrates an OS specific spin lock. (In fact, I'm using the SPINLOCK sample that accompanies Programming the Microsoft Windows Driver Model Second Edition (Microsoft Press 2003).) If the code is running on XP, it's going to use the more efficient in-stack queued spin lock, otherwise it's going to degrade gracefully and use the old-style spin lock. I am going to prove that this works by stepping through the code simultaneously on windows 2000 and XP.

The Target Machine on the left in Figure 7 is running Windows XP. The machine on the right has Windows 2000 installed. I'll use ports 3001 and 3002 to handle the remote debugging sessions for these machines, respectively.

Let's assume that the debuggers on the Host have been set up and are connected up correctly to com1 and com2. I am going to focus on how we get two debug sessions running on a Remote Host. Here we go....    

  • Install the driver on both Target machines. In this example, you use the Add Hardware wizard for a fake device whose driver has an INF file.
  • Turn off both Target machines.
  • On the Remote Host, run an instance of the debugger for each Target we want to debug.

    Port 3001, the XP Target machine on com1:

C:/> windbg -remote tcp:server=//Jolwhqldev-xp,port=3001 -srcpath //Sysphus/softshared/symbols/KillerApp/src
  • Port 3002, the Windows 2000 Target machine on com1:

C:/> windbg -remote tcp:server=//Jolwhqldev-xp,port=3002 -srcpath //Sysphus/softshared/symbols/KillerApp/src
  • Start both Targets.

  • During the boot sequence break into each Remote Host debugger instance and set a breakpoint:

bu spinlock!InitializeSpinLockFunctionPointers
  • Restart the Debuggers.

g
  • Both debuggers will break when execution reaches the breakpoint we set. We can single step through the code and prove irrefutably that this code will indeed only try to use queued spin locks on Windows XP. figure 8 is a screen shot showing two instances of WinDbg running on my Remote Host, with execution paused at the OS-specific code.

Figure 8. Multiple Targets
Figure 8. Which Spin Lock ? .

The debugger correctly illustrates the different code paths on the different operating systems. 

 

Summary

In this article I have a tried to steer a straight course from the simplest configuration to a point where we are ready to embark on some profoundly complex and esoteric configurations. We could employ these techniques, for example, to rig up a whole Test Lab to a single Host Computer. An army of developers could be ready and waiting to attach remotely to any Target Machine when a problem arises. The days of wandering around with a laptop and a Null Modem cable are well and truly over.

 

As well as enabling development/ test teams to work more efficiently, using WinDbg in this way is a fantastic learning tool. As I demonstrated in the last example, simultaneoulsy stepping through the same code on different operating systems is now a possibility. When you consider that any other developer with access to the magic socket could also join the debug session, the possibilities are endless. Whether you are a single developer, whose code needs to run on a plethora of different software/ hardware configurations, or part of a vast team of developers, these techniques can be invaluable.

 

About the author:
Jolyon Wright is Principal Software Engineer at Saitek plc, purveyors of fine hardware and software solutions for the gaming industry since 1979.
Windows Mobile下SQLite的Native C++轻量封装实践 SQLite作为嵌入式场景中最主流的轻量级关系型数据库,以其零配置、事务安全、单文件部署等特性,广泛应用于资源受限的工业终端设备。其底层基于C语言实现,天然适配Native开发,但在Windows Mobile这类已终止支持的嵌入式平台中,需直面ARMv4T指令集兼容、wchar_t编码转换、内存确定性管理及线程安全模型重构等核心挑战。本文聚焦SQLite在WM平台的本地化落地,深入解析C API直接封装、源码级编译适配、BOM敏感字符串处理、CriticalSection双重加锁等关键技术路径,为遗留系统 阅读详情

相关推荐

Windows windbg kernel debug 双机内核调试 - USB3.0 调试 USB调试 调试线

0x1 使用USB3.0 调试线,进行windows双机内核调试 从win8开始,windows就引入了USB 3.0的内核调试 ,速度可以说爽的一批。不过能否支持USB3.0的调试,还需要看你的机器配置。 怎么知道知否支持USB3.0调试? Host端: 1 系统,WIN8以及以上 2Target机器带有xHCI 控制器,即USB3.0的接口 Target端: 1 系统,WIN8 以及以上 2Target机器带有xHCI 控制器,...

nethm的专栏 1614

建立WinDbg远程调测环境

WinDbg是Windows的一个调测工具。我们知道Windbg可以对导致系统崩溃的现象进行分析,不仅可以对内核(kernel)产生的dump文件进行分析,也可以直接连接上网络中另一台主机的内核进行分析。本文介绍如何建立远程内核调测环境的方法。 建立windows内核远程调测(Network Kernel Debugging)环境,一个关键点是需要网卡设备的支持。不同的系统需要不同的网卡,在微软网站上可以找到相关说明。例如:Supported Ethernet NICs for Network Kerne

weixin_41722302的博客 459

线性代数笔记【空间曲面】

二次曲面 曲面可以看成是一个动点或一条动曲线按照一定条件或规律运动产生的轨迹 曲面的方程即是该动点的坐标所满足的方程 空间解析几何中,一般会涉及到由曲面写方程和由方程看曲面两种类型问题 曲面与曲面方程 球面方程 球面:空间内与定点的距离等于定长的点的集合 这一定点叫球心,定长叫半径 标准方程 (x−x0)2+(y−y0)2+(z−z0)2=r2(x-x_0)^2+(y-y_0)^2+(z-z_0)^2=r^2(x−x0​)2+(y−y0​)2+(z−z0​)2=r2 球心P0(x0,y0,z0)P_0(

qq_40500005的博客 3257

双机内核调试 101

原调试转储dumpdebugkernel dumpkernel debugremote kernel debug标题中的 101 请参阅 wikipedia 101。 前言 我们在上一篇文章——本地内核调试环境搭建,就这么简单!中总结了本地内核调试的开启方法。本地内核调试有很多限制(比如,不能执行 .crash 来让系统蓝屏,不能执行 .dump 保存转储,不能下断点 ……...

392

逻辑漏洞:水平越权、垂直越权靶场练习

水平越权和垂直越权是组织中常见的管理问题,指的是员工在组织中所拥有的权力和责任超出其职位所应具备的范围。 水平越权是指员工在同一级别的职位上超越了其同事的权力和责任范围,通常表现为某个员工在团队中承担了过多的任务或权力,导致其他同事感到不公平或不满。 垂直越权则是指员工在组织中超越了其职位等级的权力和责任范围,通常表现为员工在没有得到上级批准的情况下做出决策或行动,可能会导致组织内部的混乱和冲突。

qq_68163788的博客 2481

AXI总线的Burst Type以及地址计算 | WRAP到底是怎么一回事?

AXI总线的transaction是burst-based的,因此有必要好好研究一下不同burst type的工作原理。此处略过burst的定义以及burst size、burst length等信号的介绍。

qiuzhongyu123的博客 2万+

windbg内核态和用户态远程调试的几种方法

先设置相同的符号变量在环境变量 _NT_SYMBOL_PATH SRV*C:\symbols*http://msdl.microsoft.com/download/symbols 第一种方法 //在target启动 C:\windbg\x86\cdb.exe -server tcp:port=8456 "C:\calc.exe" //然后windg connect to remote sessi...

如鹿渴慕泉水的专栏 855

Ubuntu16.04下禁用scp、sftp和winscp

在上一篇博文《Ubuntu16.04 搭建FTP服务器,设置用户权限为只许上传、禁止下载和删除》中,我讲述了Ubuntu16.04下配置FTP,并且设定用户权限为只能上传数据,禁止下载和删除数据。这算在FTP层面封堵了服务器数据泄露的途径。 但是,Ubuntu系统的scp和sftp还是起作用的,理论上只要能用本地机器ping通服务器,就可以用scp和sftp下载数据,这还是存在数据泄露可能的,所...

HPC&Geophysics攻城狮 5739

HOWTO Remote Kernel Upgrade [出自Gentoo Linux Wiki]

HOWTO Remote Kernel Upgradehttp://zh.gentoo-wiki.com/HOWTO_Remote_Kernel_Upgrade出自Gentoo Linux Wiki跳转到: 导航, 搜索 安装方法 • 架构/平台 • 内核 & 硬件 ...

weixin_33862514的博客 134

海康SDK实战:如何从PS流中提取H264裸流并实现前端播放(附完整代码)

本文详细介绍了如何利用海康SDK从PS流中提取H264裸流,并构建无插件前端播放的完整链路。通过解析PS流结构、提取H264 ES流,结合WebSocket实时传输与WFS.js前端播放器,实现了低延迟、高可控性的视频流处理方案,为开发者提供了从数据源到前端渲染的实战代码与清晰指南。

weixin_29051811的博客 484

面试真题集(十六):TensorRT基础

TensorRT面试真题解析:从模型优化到推理部署 本文精选了14道TensorRT面试题,涵盖选择题、简答题和场景题,深度考察推理工程师对TensorRT核心技术的理解。内容聚焦三个关键维度: 基础概念 FP16推理中Softmax层为何需保持FP32(数值稳定性) INT8校准原理(EntropyCalibrator2的鲁棒性优势) Plugin V3接口的构建/运行分离设计 性能优化 Conv-BN-ReLU融合减少40-60%延迟的关键机制(访存优化) 动态Shape配置策略(min/opt/max

PeterPan的博客 81

windbg 双机调试配置(xp)系统

工具/原料 虚拟机软件VMware Workstation WinDbg软件 方法/步骤 1 打开虚拟机软件 2 打开我们要设置的虚拟xp系统 3 编辑虚拟机设置 ...

2486

CAN(2)-GD32

GD32中CAN的特征。

小柚子的博客 559

EdgeDB/Gel 事务提交完全指南:EdgeQL `commit` 命令与事务生命周期深度解析

`commit` 是 EdgeQL 事务 API 的收尾命令,用于将当前事务内全部变更原子性地提交,使其对其他会话可见并在崩溃后依然持久。本篇以 [tx_commit.rst](https://link.gitcode.com/i/714df5ab1840dbcd38fa261397fdfbf5) 为主体,系统讲解 `commit` 的语法、语义、隔离级别与访问模式对其行为的影响,并下沉到源码层面

gitblog_00592的博客 1066

VTK-9.5.0 1D2D3DWidget实现灰度图+深度图+3D点云显示(可轻松集成到自己的项目)

VTK1D2D3DWidget是一个基于Qt和VTK开发的3D点云可视化工具,支持RGB和深度点云数据的显示与处理。主要功能包括点云加载、可视化、保存为PLY格式文件,以及背景颜色、点间隔、坐标轴显示等参数的自定义设置。该工具采用模块化设计,核心组件包括主窗口管理类、VTK渲染组件和自定义鼠标交互样式,依赖Qt5+和VTK9.5.0库实现跨平台支持。项目提供完整的源码和构建指南,适用于点云数据的快速展示与分析。

Qt历险记,专注Qt技术,三年医疗设备研发经验,1年机器视觉研发经验,半年柔性传感研发经验。 391

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

Debugging in Windows

前面在看Advanced Windows Debugging, 罗列了一些常用debug工具: Debugging Tools for Windows Usage Scenarios Collection of debuggers and tools Current Version 6.6.0007.5 Download...

weixin_34357928的博客 118

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

How to use WinDbg to debug .net programs

通过加载SOS模块和SOSEX,可以在windbg中调试.net程序。 代码 1 using System; 2 using System.Text; 3 namespace Advanced.NET.Debugging.Chapter2 4 { 5 class TypeSample 6 { 7 TypeSample(int x, int y, ...

weixin_30647065的博客 261

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

VivienneVMM编译与部署指南:从源码到运行的完整流程

VivienneVMM是一个基于Intel VT-x虚拟化技术的**隐式调试框架**,通过虚拟机监控器实现**不可检测的断点调试**功能。本文将详细介绍如何从源码编译到实际部署VivienneVMM的完整流程,帮助安全研究人员和逆向工程师快速上手这个强大的调试工具。 ## 📋 前置条件与环境准备 ### 系统要求 - **操作系统**: Windows 7 x64 SP1 或更高版本(Win

gitblog_00690的博客 836

安装VMware+Windgb+Win7WinXP内核驱动调试的笔记

安装VMware+Windgb+Win7WinXP内核驱动调试的笔记 一、安装环境 1        下载 WDK 2        安装VMware 3        安装虚拟系统(虚拟系统win7,XP都行) 4        WDK中自带有windbg。路径:C:\WinDDK\7600.16385.1\Debuggers\windbg.exe 因此无需安装windbg。

tangtianfly的技术专栏 990

windbg the easy way

WinDbg太强大了!---1,http://www.debuginfo.com/articles/easywindbg.html2,http://www.debuginfo.com/articles/easywindbg2.html

eulb的专栏 1050

Windbg内核调试之三: 调试驱动

这次我们通过一个实际调试驱动的例子,来逐步体会Windbg在内核调试中的作用.由于条件所限,大多数情况下,很多人都是用VMware+Windbg调试内核(VMware的确是个好东西).但这样的调试需要占用大量的系统资源,对于和我一样急性子的朋友来说这是不可接受的:).利用双机调试就可以让你一边喝咖啡一边轻松的看结果,而不至于郁闷的等待每次长达数分钟的系统响应.有关双机调试的基本设置,请参考:htt

mergerly的专栏 2926

关于windbg调试符号表配置路径错误的问题探讨

 打开windbg.exe 开始进行‘内核调试’(kernel debug)时,命令行窗口输出错误提示 :Connected to Windows XP 2600 x86 compatible target, ptr64 FALSE*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntkr

ltl51com的专栏 7492

使用Virtual PC进行Windows内核调试的详细过程

使用Virtual PC进行Windows内核调试的详细过程  使用WinDbg进行Windows内核调试通常需要两台计算机,一台是Debuggee,一台作为Debugger,又成为Host。使用Virtual PC可以在同一台电脑上进行内核调试,对于某些调试任务来说还是非常有用的。下面以Virtual PC 2004为例,介绍一下利用Virtual PC进行Windows内核调试的详细过程。

小伟 1479
上一篇: List of useful security libraries
下一篇: Testing Network Drivers with the NDIS Test Tool
iiprogram
博客等级 码龄25年 1068粉丝 1515原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址