tomatoes
01-05-08, 10:48 AM
Đây chỉ là 1 code đơn giản để chống WPE hy vọng sẻ giúp các bạn 1 phần nào.Nhưng thực tế chúng ta vẩn cần nhờ đến GameGuard hay 1 dll nào nó anti hack hoàn hảo hơn.Nhưng thôi cứ đưa ra cho các bạn tham khảo.
.386
.Model flat, StdCall
Option CaseMap:none
Include \masm32\include\windows.inc
Include \masm32\include\user32.inc
Include \masm32\include\kernel32.inc
Include \masm32\include\masm32.inc
IncludeLib \masm32\lib\user32.lib
IncludeLib \masm32\lib\kernel32.lib
IncludeLib \masm32\lib\masm32.lib
.Const
.Data?
.Data
WPEName DB "WPE PRO", 0
QuitHack DD 00644F02H
.Code
DllEntry Proc hInstDLL:HINSTANCE, reason:DWord, reserved1:DWord
Mov Eax, TRUE
Ret
DllEntry EndP
WPEProtect Proc
Local Succes:DWord
Push Offset WPEName
Push 0
Call FindWindowA
Mov Succes, Eax
Cmp Succes, 0
Je NoWPE
Push 1
Mov Edx, Succes
Push Edx
Call QuitHack
Add Esp, 8
NoWPE:
Ret
WPEProtect EndP
Credit: Holy
.386
.Model flat, StdCall
Option CaseMap:none
Include \masm32\include\windows.inc
Include \masm32\include\user32.inc
Include \masm32\include\kernel32.inc
Include \masm32\include\masm32.inc
IncludeLib \masm32\lib\user32.lib
IncludeLib \masm32\lib\kernel32.lib
IncludeLib \masm32\lib\masm32.lib
.Const
.Data?
.Data
WPEName DB "WPE PRO", 0
QuitHack DD 00644F02H
.Code
DllEntry Proc hInstDLL:HINSTANCE, reason:DWord, reserved1:DWord
Mov Eax, TRUE
Ret
DllEntry EndP
WPEProtect Proc
Local Succes:DWord
Push Offset WPEName
Push 0
Call FindWindowA
Mov Succes, Eax
Cmp Succes, 0
Je NoWPE
Push 1
Mov Edx, Succes
Push Edx
Call QuitHack
Add Esp, 8
NoWPE:
Ret
WPEProtect EndP
Credit: Holy