思路。可以看出来 他是劫持的 xlue.dll 我们也劫持他。这样就可以
先于 加载。然后hook 掉 createwindowEx ,所有控件的创建都会走这一步,
然后 修改掉 标题,即可。
成果演示,
劫持dll :
使用方法,将原来的 xlue.dll 改名 为 xlue1.dll 再将 本dll 放进去即可,
xlue.zip
(62.26 KB, 下载次数: 2)
如果要修改 内容直接用 十六进制编辑器 修改 这个 dll 里面的文本即可,
核心代码:
[C] 纯文本查看 复制代码
HWND My_CreateWindowEx(
DWORD dwExStyle, // extended window style
LPCTSTR lpClassName, // pointer to registered class name
LPCTSTR lpWindowName, // pointer to window name
DWORD dwStyle, // window style
int x, // horizontal position of window
int y, // vertical position of window
int nWidth, // window width
int nHeight, // window height
HWND hWndParent, // handle to parent or owner window
HMENU hMenu, // handle to menu, or child-window identifier
HINSTANCE hInstance, // handle to application instance
LPVOID lpParam // pointer to window-creation data
)
{
if(!IsBadStringPtr(lpWindowName,10))
{
if(strstr(lpWindowName,"663583361")!=NULL)
{
lpWindowName="群号修改AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
}
if(strstr(lpWindowName,"神话内部秒杀群")!=NULL)
{
lpWindowName="名称修改AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
}
}
return TrueCreateWindow(dwExStyle,
lpClassName,
lpWindowName, // pointer to window name
dwStyle, // window style
x, // horizontal position of window
y, // vertical position of window
nWidth, // window width
nHeight, // window height
hWndParent, // handle to parent or owner window
hMenu, // handle to menu, or child-window identifier
hInstance, // handle to application instance
lpParam // pointer to window-creation data
);
}
|