首页
社区
课程
招聘
[原创]几种枚举窗口的方法(包括猥琐的你懂得)
发表于: 2016-5-26 12:34 6322

[原创]几种枚举窗口的方法(包括猥琐的你懂得)

2016-5-26 12:34
6322
老生常谈的枚举那些就 不说了
说一些 很少有人处理的

POINT pt;
GetCursorPos(&pt);
        hd=WindowFromPhysicalPoint(pt);
                if (hd!=NULL)
                {
                        GetWindowTextA(hd, text, 260);
                        printf("text :%s \n",text);
                        Sleep(2000);
                }
获取当前鼠标所在位置的窗口
随便写个demo 在vista以上就anti sod
        GetCursorPos(&pt);
                ScreenToClient(GetDesktopWindow(), &pt);
                hd=        ChildWindowFromPoint(GetDesktopWindow(), pt);
                if (hd != NULL){

                        GetWindowTextA(hd, text, 260);
                        printf("text :%s \n", text);
                        Sleep(2000);

                }*/
从某个坐标处开始枚举 实际上是 枚举的 hwd内的窗口 坐标要转换成 用户坐标

查色 比对的就不说了~

很多人爱用的
       
        HWND hChild = ::GetWindow(ParentWnd, GW_CHILD);
        for (;hChild != NULL; hChild = ::GetWindow(hChild, GW_HWNDNEXT))
        {

}

HWND WINAPI RealChildWindowFromPoint(
  _In_ HWND  hwndParent,
  _In_ POINT ptParentClientCoords
);
PhysicalToLogicalPoint

检测 隐藏窗口的话就有N+!种方法了 太多 不说了

以上 是 相对猥琐的东西了~~~
但是 我还是没想到X3更新后用的什么方法枚举我的CE~

[课程]FART 脱壳王!加量不加价!FART作者讲授!

收藏
免费 3
支持
分享
最新回复 (1)
雪    币: 11
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
从桌面堆可以枚举(win7)
spy++ (vs2010)为例
2016-5-29 23:59
0
游客
登录 | 注册 方可回帖
返回
//