首页
社区
课程
招聘
[求助]softice hwnd task命令求助
发表于: 2008-2-17 14:57 5564

[求助]softice hwnd task命令求助

2008-2-17 14:57
5564
我想对消息下断
需要知道句柄
用 hwnd 命令显示unable find desktop window
task 显示 NO LDT
为什么啊?
我的是XP SP2系统
SOFTICE是从看雪上下的那个

[课程]Android-CTF解题方法汇总!

收藏
免费 0
支持
分享
最新回复 (7)
雪    币: 44229
活跃值: (19965)
能力值: (RANK:350 )
在线值:
发帖
回帖
粉丝
2
要到进程内部下
或hwnd 进程名

如果是普通的调试,建议你用OllyDBG
2008-2-17 15:08
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
谢谢先 恢复好快啊
我已经使用
ADDR(是这个命令吧?)
那东西好像反OD
TASK 因该能现实出进程信息吧
为什么是NO LDT呢
2008-2-17 15:14
0
雪    币: 297
活跃值: (27)
能力值: ( LV13,RANK:380 )
在线值:
发帖
回帖
粉丝
4
看过我写的,就明白了

Who are most familiar with Windows? May be SoftICE, but not always.
This is a common scenario: When you Ctrl+D, and input "hwnd", it is "Unable to find a desktop Window".
How to resolve it ...

By TnTTOOLS, The Art OF Reverse Engineering.

The system setup a session for every logged-in user. win32k.sys is loaded to generate the 4 Desktop: Desktop, Default Desktop, Disconnect Desktop, Winlogon Desktop.  Yes, 4, four, for, ...
Even Spy++ just think there is only one desktop.

Figure 1. Properties
-----------------------------------------------------------
ClassName: #32769
TID, Process: csrss.exe
Handle: 0x00010002, 0x00010004, 0x0001000c, 0x00010014
WndProc: win32k!_xxxDesktopWndProc
Module: win32k.sys
-----------------------------------------------------------
We can see their only difference is the handle value. Because these handle values are fixed. I guess that are hard coded.

Figure 2. Root
--------------------------------------------------------
Desktop, 10002
|
|----       Desktop, Default, 10014
|----       Dekstop, Disconnect, 10004
|----       Desktop, Winlogon, 1000c
--------------------------------------------------------
The root node of windows, controls is Desktop, Handle 10002.

Figure 3.  Default Desktop and its children
----------------------------------------------------------------------------
Default Desktop
|
|-- Shell_TrayWnd 任务栏
|    |--
|    |--
|   
|
|-- Progman
|     |
|     |-- SHELLDLL_DefView
|           |
|           |-- SysListView32, WindowName: FolderView
|                   |
|                   |     
|                  SysHeader32
|
|-- ...
----------------------------------------------------------------------------

now, where is our familiar desktop? I know what you mean: the desktop full of a crusty picture and icons.

The desktop with the wallpaper is Default Desktop, in master of win32k.sys;
The desktop full with misc icons is SysListView32, named FolderView, in master of shell32.dll.

When Explorer.exe is loaded, its WinMain creates the two windows: the task bar and the desktop.Guess, what is this desktop? Just the named-FolderView desktop.

Are you confused? Now, loop loop back to the beginning of the article.
End Loop
Next
time, if you want to wander the object tree of windows in Softice, just input "Hwnd 10002".
2008-2-18 10:39
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
那个我E问不是太好啊
能讲下怎么办不?
还有就是BMSG下断点
我用SPY++找的句柄
但是提示句柄无效
2008-2-18 15:15
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
2楼的
我只能看懂大致意思是有四个桌面
我们大家用的是FolderView desktop
起句柄是10002
所以我们要 HWND 10002
但具体什么意思还不太确定
是不是输入 HWND 10002
后再输入  HWND 进程名就能看到信息了?
我现在是输入 HWND 进程名 什么也看不到啊 是我设置的问题?

另外那个TASK 命令怎么用啊?
是我用的不对还是怎么的 都显示 NO LTD啊
2008-2-18 17:16
0
雪    币: 44229
活跃值: (19965)
能力值: (RANK:350 )
在线值:
发帖
回帖
粉丝
7
句柄你可以用其他工具获得。
有了句柄,用BMSG下命令就行了。
不过,以前我用的SoftICE 3.2,用BMSG也断不下来,我感觉这个是softice的bug。
2008-2-18 17:18
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
8
在SOFTICE中还有其他下消息断点的办法吗?

我用SPY++获得了句柄
BMSG 句柄 WM_LBUTTONDOWN
但显示句柄无效  郁闷
2008-2-18 17:21
0
游客
登录 | 注册 方可回帖
返回
//