[Help]C++ xtrap bypass

11/09/2012 01:54 feliz009#1
PHP Code:
[/COLOR]
#include <windows.h>

#define HackDetect1 0x00435FA6
BYTE HD1[] = {0xEB0x35};
#define HackDetect2 0x0043CE36
BYTE HD2[] = {0xEB0x35};
#define HackDetect3 0x0043DCF0
BYTE HD3[] = {0xEB0x35};
#define HackDetect4 0x0043DCD1
BYTE HD4[] = {0xEB0x1F};
#define HackDetect5 0x0043DCE9
BYTE HD5[] = {0xEB0x07};
#define IsDebuggerPresent 0x00499517
BYTE IDP[] = {0x90};
#define ZCheckHackProcess1 0x00441E35
BYTE ZCHP1[] = {0xEB0x34};
#define ZCheckHackProcess2 0x00441E62
BYTE ZCHP2[] = {0xEB0x2C};
#define ZCheckHackProcess3 0x00441EBD
BYTE ZCHP3[] = {0xEB0x09};
#define AbnormalBehavior 0x00440353
BYTE AB[] = {0xE90x8A0x000x000x00};

//Write To Memory
DWORD OldProtection;
void WriteToMemory(DWORD OffsetDWORD PointerDWORD Length){
    
VirtualProtect((void *)OffsetLengthPAGE_EXECUTE_READWRITE, &OldProtection);
    
RtlMoveMemory((void *)Offset, (const void*)PointerLength);
    
VirtualProtect((void *)OffsetLengthOldProtection, &OldProtection);
}
void ModifyMemoryBYTE *OffsetBYTE *ByteArrayDWORD Length){
    for(
DWORD i 0Lengthi++)
        
WriteToMemory((DWORD)Offset i, (DWORD)ByteArray i1);
}

void Bypass()
{
    
ModifyMemory((BYTE*)HackDetect1HD12);
    
ModifyMemory((BYTE*)HackDetect2HD22);
    
//ModifyMemory((BYTE*)HackDetect3, HD3, 2);
    
ModifyMemory((BYTE*)HackDetect4HD42);
    
ModifyMemory((BYTE*)HackDetect5HD52);
    
//ModifyMemory((BYTE*)IsDebuggerPresent, IDP, 1);
    //ModifyMemory((BYTE*)ZCheckHackProcess1, ZCHP1, 2);
    //ModifyMemory((BYTE*)ZCheckHackProcess2, ZCHP2, 2);
    //ModifyMemory((BYTE*)ZCheckHackProcess3, ZCHP3, 2);
    
ModifyMemory((BYTE*)AbnormalBehaviorAB5);
}

bool APIENTRY DllMain(HMODULE hModuleDWORD dwReasonLPVOID lpvReserved){
    if(
dwReason == DLL_PROCESS_ATTACH){
        
DisableThreadLibraryCalls(hModule);
        
Bypass();
        return 
true;
    }
    return 
true;

does anyone can compile or do something with this? thans