[C++]X-Trap Bypass

10/16/2008 19:44 rmauk#1
Simply compile in C++ as a DLL and inject.

Source:
Code:
/*********************************************************************
** XTrap Bypass            										**
**********************************************************************
** Hacking Detected													**
** ----------------													**
** 00435FA6	EB 35 All referenced text string, 'Hacking detected'	**
**				  One line, up, change JNZ to JMP					**
** 0043CE36	EB 35 All referenced text string, 'Hacking detected'	**
**				  One line, up, change JNZ to JMP					**
** 0043DCF0	EB 35 All referenced text string, 'Hacking detected'	**
**				  One line, up, change JNZ to JMP					**
** 0043DCD1	EB 1F All referenced text string, 'Hacking detected'	**
**				  Jump #1 change JNZ to JMP							**
** 0043DCE9	EB 07 All referenced text string, 'Hacking detected'	**
**				  Jump #2 change JNZ to JMP							**
**																	**
** IsDebuggerPresent												**
** -----------------												**
** 00499517	90 Go to IsDebuggerPresent, do down and NOP first JNZ	**
**																	**
** ZCheckHackProcess												**
** -----------------												**
** 00441E35 EB 34 All referenced text string, 'Hacking Detected'	**
**				  go up till start of function (PUSH -1),			**
**				  go to the local call, under it theres a			**
**				  TEST AL,AL, go down one more line, (JNZ) change	**
**				  it to JMP	(Do this for all 3 'Hacking Detected'	**
** 00441E62 EB 2C													**
** 00441EBD EB 09													**
**																	**
** Abnormal Behavior												**
** -----------------												**
** 00440353 E9 8A 00 00 00 All referenced text strings,				**
**						   'An abnormal behavior is detected.',		**
**						   go up 2 lines, change the JE to JMP		**
*********************************************************************/

#include <windows.h>

#define HackDetect1 0x00435FA6
BYTE HD1[] = {0xEB, 0x35};
#define HackDetect2 0x0043CE36
BYTE HD2[] = {0xEB, 0x35};
#define HackDetect3 0x0043DCF0
BYTE HD3[] = {0xEB, 0x35};
#define HackDetect4 0x0043DCD1
BYTE HD4[] = {0xEB, 0x1F};
#define HackDetect5 0x0043DCE9
BYTE HD5[] = {0xEB, 0x07};
#define IsDebuggerPresent 0x00499517
BYTE IDP[] = {0x90};
#define ZCheckHackProcess1 0x00441E35
BYTE ZCHP1[] = {0xEB, 0x34};
#define ZCheckHackProcess2 0x00441E62
BYTE ZCHP2[] = {0xEB, 0x2C};
#define ZCheckHackProcess3 0x00441EBD
BYTE ZCHP3[] = {0xEB, 0x09};
#define AbnormalBehavior 0x00440353
BYTE AB[] = {0xE9, 0x8A, 0x00, 0x00, 0x00};

//Write To Memory
DWORD OldProtection;
void WriteToMemory(DWORD Offset, DWORD Pointer, DWORD Length){
    VirtualProtect((void *)Offset, Length, PAGE_EXECUTE_READWRITE, &OldProtection);
    RtlMoveMemory((void *)Offset, (const void*)Pointer, Length);
    VirtualProtect((void *)Offset, Length, OldProtection, &OldProtection);
}
void ModifyMemory( BYTE *Offset, BYTE *ByteArray, DWORD Length){
    for(DWORD i = 0; i < Length; i++)
        WriteToMemory((DWORD)Offset + i, (DWORD)ByteArray + i, 1);
}

void Bypass()
{
	ModifyMemory((BYTE*)HackDetect1, HD1, 2);
	ModifyMemory((BYTE*)HackDetect2, HD2, 2);
	//ModifyMemory((BYTE*)HackDetect3, HD3, 2);
	ModifyMemory((BYTE*)HackDetect4, HD4, 2);
	ModifyMemory((BYTE*)HackDetect5, HD5, 2);
	//ModifyMemory((BYTE*)IsDebuggerPresent, IDP, 1);
	//ModifyMemory((BYTE*)ZCheckHackProcess1, ZCHP1, 2);
	//ModifyMemory((BYTE*)ZCheckHackProcess2, ZCHP2, 2);
	//ModifyMemory((BYTE*)ZCheckHackProcess3, ZCHP3, 2);
	ModifyMemory((BYTE*)AbnormalBehavior, AB, 5);
}

bool APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved){
	if(dwReason == DLL_PROCESS_ATTACH){
		DisableThreadLibraryCalls(hModule);
		Bypass();
		return true;
	}
	return true;
}
Don't ask how to compile it. If you can't compile it you don't deserve it.
Works for all versions of xtrap to date.

Edit: Posted in the wrong section..Someone can move it if needed =)
10/16/2008 23:17 EmoPrince#2
thankssssssss!!!!!!!!!!!!!!!!!!!!!!!!!!!1 ;)
10/17/2008 10:16 ragnarokx#3
copy the whole text and paste it into notepad.then save it as DLL format?
put it in Xtrap folder?
10/17/2008 15:44 oren_studio#4
lol. it's not that simple.
10/18/2008 03:11 ckh94#5
Some one please teach how to compile i when to google and search how to but there is no guide....
10/19/2008 00:32 king4noob#6
Quote:
Originally Posted by ragnarokx View Post
copy the whole text and paste it into notepad.then save it as DLL format?
put it in Xtrap folder?
Quote:
Originally Posted by ckh94 View Post
Some one please teach how to compile i when to google and search how to but there is no guide....
LIKE RAMUK SAID, YOU DO NOT DESDREV TO USE IT, if you don't event know what dll or c++ is, please quit cheating or go play WoW.:mad:
10/19/2008 00:53 AngelOfDeathXIII#7
just wondering...

does this actually work?

and does this work for Cabal NA?
10/19/2008 01:50 rmauk#8
Quote:
Originally Posted by AngelOfDeathXIII View Post
just wondering...

does this actually work?

and does this work for Cabal NA?
"Works for all versions of xtrap to date."
10/19/2008 03:15 ckh94#9
Quote:
Originally Posted by king4noob View Post
LIKE RAMUK SAID, YOU DO NOT DESDREV TO USE IT, if you don't event know what dll or c++ is, please quit cheating or go play WoW.:mad:
Do u think u will start knowing every thing when its your first time using the computer and look for some they need? every thing comes with learning...
is either u dun want us to know(As u dun want many ppl to find how) or u just trying to show off...i have things better than u in many things....
10/19/2008 03:17 ckh94#10
so why not u just share .....and help those ppl who wants to learn
10/19/2008 09:29 forceguardians#11
Quote:
Originally Posted by rmauk View Post
Simply compile in C++ as a DLL and inject.
I compiled it using VISUAL STUDIO.

But I don't know how to inject it.

Please share your knowledge.


--------------------------------------------

knowledge without wisdom is nothing.
10/19/2008 12:31 rmauk#12
Quote:
Originally Posted by forceguardians View Post
I compiled it using VISUAL STUDIO.

But I don't know how to inject it.

Please share your knowledge.


--------------------------------------------

knowledge without wisdom is nothing.
Google for a dll injector....
10/19/2008 13:09 St!gmata#13
Quote:
Originally Posted by rmauk View Post
Simply compile in C++ as a DLL and inject.

Don't ask how to compile it. If you can't compile it you don't deserve it.
Works for all versions of xtrap to date.
So donīt ask any questions related to his quote!

*moved to Hack-Section*
10/21/2008 10:29 acemaster15#14
:P compile in c++ and in injector ready ,question is, inject wat :{
10/21/2008 13:42 gonzab#15
inject xtrap process or cabal process?