抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

配置虚拟机

打开虚拟机目录下的 vmx 文件, 添加设置项

32 位客户机系统

1
2
3
4
5
6
7
debugStub.port.guest32          = "54232"   ; x86 默认调试端口 8832
debugStub.listen.guest32 = "TRUE"
debugStub.listen.guest32.remote = "TRUE"
debugStub.hideBreakpoints = "TRUE" ; 启用使用硬件断点而不是软件 (INT3) 断点
monitor.debugOnStartGuest32 = "TRUE" ; 在第一条指令 (在BIOS! 中警告) 中断进入DebugStub
; 这将在第一条指令在0xFFFF0处停止VM, 您可以设置下一个断点来破坏* 0x7c00引导加载程序由BIOS加载
bios.bootDelay = "3000" ; 延迟启动BIOS代码

64 位客户机系统

1
2
3
4
5
6
debugStub.port.guest64          = "54264"   ; x64 默认调试端口 8864
debugStub.listen.guest64 = "TRUE"
debugStub.listen.guest64.remote = "TRUE"
debugStub.hideBreakpoints = "TRUE"
monitor.debugOnStartGuest64 = "TRUE"
bios.bootDelay = "3000"

配置调试器

IDA -> Debugger -> Attach -> Remote GDB debugger

hostname 填写 localhostport 填上面给出的[默认]端口

设置内存布局

Alt + S 设置内存布局

32 Bit: 0x0 ~ 0xFFFFFFF0
64 Bit: 0x0 ~ 0xFFFFFFFFFFFFFFF0

如果是要调试 BIOS 代码, 那么应创建一个从 0xF0000 到 0x10000 的 16 位段

评论