❗ It Just Wont Compile....

Posts 1–8 of 8 · Page 1 of 1
Ok I've been Trying To Do This For 2 Days Now And This Code i Got Was From This Guy Here "lakshay{Banned}" But The Code i have Copyed and pasted ( yes ik i'm a big Noob.... ) into "Microsoft Visual C++ 2008 Express Edition"

and made the project as a DLL file. I pasted the code and compiled the file i get this Error or i would Get other saying To Many #define

"1>------ Build started: Project: XTrap Bypass, Configuration: Debug Win32 ------
1>Compiling...
1>XTrap Bypass.cpp
1>c:\users\john\documents\visual studio 2008\projects\xtrap bypass\xtrap bypass\xtrap bypass.cpp(57) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
1>Build log was saved at "file://c:\Users\John\Documents\Visual Studio 2008\Projects\XTrap Bypass\XTrap Bypass\Debug\BuildLog.htm"
1>XTrap Bypass - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========" Oh ya heres The Code I Used.
Code:
#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;
}
So if You Have Any Idea What I Shuld Do Or A nother program i should get please help me out, It Would Be Very greatful.

I Have Added The #include "stdafx.h" But the new error now is 1>------ Build started: Project: XTrap Bypass, Configuration: Debug Win32 ------
1>Compiling...
1>XTrap Bypass.cpp
1>c:\users\john\documents\visual studio 2008\projects\xtrap bypass\xtrap bypass\xtrap bypass.cpp(3) : error C2001: newline in constant
1>Build log was saved at "file://c:\Users\John\Documents\Visual Studio 2008\Projects\XTrap Bypass\XTrap Bypass\Debug\BuildLog.htm"
1>XTrap Bypass - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Sorry For Double Post ;~;
Turn off precompiled headers
..... I love u.... Will u have my babe.... LOOL?

Lol fail...

When I select dll I can't turn off precomplied headers. I don't no why..... Triple post sry again...
Quote Originally Posted by RoflPwned View Post
When I select dll I can't turn off precomplied headers. I don't no why..... Triple post sry again...
When you create the project as a DLL, tick "Empty project".
..... and now i have failed.XD LOL CUZ I DON'T KNOW WHAT TO DO! LOOL! :P

I Truly Need To Learn How To Code Cuz the Fucking Shit I Have Now is so crappy..... This is the damn error i got....
Remember kids, this thread is a prime example of why copy and pasting is bad!
Nice triple post and double post in 1 thread.
I know, he thinks this is an IM. fail.
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us