|
去广告原理: 这里当然是用 middlebeer 的方法 MoveWindow(hwndChild,0,0,0,0,true); 去广告分析 2. 用ollydbg载入 Thunder.exe 然后下断点bpx ShowWindow 00495474 . 50 push eax 将上面代码改为
地址 反汇编 注释
-----------------------------> 下面为上面代码的二进制 68 68 F4 52 00 E8 9A 7A ED FF 83 F8 00 74 11 68 60 F4 52 00 50 E8 E2 1E ED FF 3E FF 34 24 FF D0 |
下面 w.dll 的原代码w.cpp:
----------------------------------------------------------
#include <Windows.h>
#pragma comment(linker, "/ENTRY:EntryPoint")
//#pragma comment(linker,"/ALIGN:0x400")
int a=0;
INT APIENTRY move(HWND);
BOOL CALLBACK EnumChildProc(HWND,LPARAM);
BOOL EntryPoint()
{
return 1;
}
INT APIENTRY move(HWND handle)
{
char c[100];
GetClassName(handle,c,100);
if(strcmp(c,"TfrmMain")==0) //如果传入的句柄为主窗的就列举子窗体
{
EnumChildWindows(handle,EnumChildProc,NULL);
}
return 0;
}
BOOL CALLBACK EnumChildProc(HWND hwndChild,LPARAM lParam)
{
static int a=0;
char cl[100];
GetClassName(hwndChild,cl,100);
if(strcmp(cl,"TGradualPanel")==0)//如果子窗体的类名为 TGradualPanel 则
{
if(a==0 ||a==11)//子窗体的序列
MoveWindow(hwndChild,0,0,0,0,true);
a++;
if(a==12)
{
return 0;//这里是停止列举子窗体
}
}
return 1;
}
-------------------------------
下面为build.bat
cl w.cpp w.def /link /subsystem:Windows /dll /out:w.dll /base:0x1C000000 /NOLOGO /machine:X86 /release user32.lib
del w.obj
del w.exp
pause
------------------------
下面为w.def
-------------------
LIBRARY w
EXPORTS
move @1
--------------------------
用法:按上面方法改好
然后将w.dll放在迅雷的安装目录下面就可以了
=============================
ftts[BCG]于
2005-09-6
============================