windbg 遍历 seh 链表

1. 手动遍历

0:000> !teb
TEB at 7ffdf000
    ExceptionList:        001bf100
    StackBase:            001c0000
    StackLimit:           001bb000
    SubSystemTib:         00000000
    FiberData:            00001e00
    ArbitraryUserPointer: 00000000
    Self:                 7ffdf000
    EnvironmentPointer:   00000000
    ClientId:             000012cc . 000012d0
    RpcHandle:            00000000
    Tls Storage:          7ffdf02c
    PEB Address:          7ffd4000
    LastErrorValue:       0
    LastStatusValue:      c0000034
    Count Owned Locks:    0
    HardErrorMode:        0
0:000> dps 001bf100 l2
001bf100  001bf7c8
001bf104  752b1425 KERNELBASE!_except_handler4
0:000> dps 001bf7c8 l2
001bf7c8  001bf890
001bf7cc  008b80d0 MineSweeper!iswspace+0x1118
0:000> dps 001bf890 l2
001bf890  001bf8dc
001bf894  0086e562 MineSweeper!_except_handler4
0:000> dps 001bf8dc l2
001bf8dc  ffffffff
001bf8e0  7700e115 ntdll!_except_handler4


2. 自动遍历 用dt,摘自 <<软件调试>>
0:000> dt ntdll!_EXCEPTION_REGISTRATION_RECORD -l next poi(7ffdf000)
next at 0x1bf100
---------------------------------------------
   +0x000 Next             : 0x001bf7c8 _EXCEPTION_REGISTRATION_RECORD
   +0x004 Handler          : 0x752b1425     _EXCEPTION_DISPOSITION  KERNELBASE!_except_handler4+0


next at 0x1bf7c8
---------------------------------------------
   +0x000 Next             : 0x001bf890 _EXCEPTION_REGISTRATION_RECORD
   +0x004 Handler          : 0x008b80d0     _EXCEPTION_DISPOSITION  MineSweeper!iswspace+0


next at 0x1bf890
---------------------------------------------
   +0x000 Next             : 0x001bf8dc _EXCEPTION_REGISTRATION_RECORD
   +0x004 Handler          : 0x0086e562     _EXCEPTION_DISPOSITION  MineSweeper!_except_handler4+0


next at 0x1bf8dc
---------------------------------------------
   +0x000 Next             : 0xffffffff _EXCEPTION_REGISTRATION_RECORD
   +0x004 Handler          : 0x7700e115     _EXCEPTION_DISPOSITION  ntdll!_except_handler4+0


next at 0xffffffff
---------------------------------------------
   +0x000 Next             : ???? 
   +0x004 Handler          : ???? 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值