Merhaba Arkadaşlar Ben https://memoryhackers.org/konular/rules-of-survival-wallhack-chams-source.46703/ Konudaki Arkadaştan Hilenin Kodlarını Aldım C++ Win32 Aplication Bir DLL Projesi Oluşturdum Visual Studioda Source.cpp Nin İçine Bu Kodları Yapıştırdım Header.h Açtım İçide Boş Ama 10 Farklı Hata Veriyor Sizce Neden Fremework Sürümü 4.6.1 Visual Studio 2012 Kullaniyorum.
Kodlar:
Bağlantıları görmek için lütfen
Giriş Yap
Kodlar:
Kod:
#pragma comment(lib,"opengl32.lib")
#pragma comment(lib,"detours.lib")
#include <process.h>
#include <Windows.h>
#include <gl/GL.h>
#include "detours.h"
#include "targetver.h"
bool wallhack = false;
bool chams = false;
bool kenarlıchams = false;
typedef void (WINAPI *glDrawElements_t) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
glDrawElements_t origglDrawElements;
// =============================================================================================== //
void WINAPI newglDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
{
//wallhack
if (GetAsyncKeyState(VK_F1) & 1) wallhack = !wallhack;
if (wallhack)
{
if (count >= 2500 && count <= 7000 && indices != 0 && count != 3939)//ultra ayarlar bunu tercih ederim
{
glDepthRange(0, 0.5);
origglDrawElements(mode, count, type, indices);
glDepthRange(0.5, 1);
}
}
//burasi chams Yeşil Normal
if (GetAsyncKeyState(VK_F2) & 1) chams = !chams;
if (chams)
{
if (count >= 2500 && count <= 7000 && indices != 0 && count != 3939)//ultra ayalar
{
glPushAttrib(GL_ALL_ATTRIB_BITS);
glPushMatrix();
glDepthRange(1, 0.5);
glColorMask(0, 1, 0, 0);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
origglDrawElements(mode, count, type, indices);
glDepthRange(0.5, 1);
glColorMask(1, 1, 1, 1);
glDisable(GL_BLEND);
glPopMatrix();
glPopAttrib();
}
}
//burası kenarlar siyah chams yeşilli
if (GetAsyncKeyState(VK_F3) & 1) kenarlıchams = !kenarlıchams;
if (kenarlıchams)
{
if (count >= 2500 && count <= 7000 && indices != 0 && count != 3939)//ultra ayarlar
{
glPushAttrib(GL_ALL_ATTRIB_BITS);
glPushMatrix();
glDepthRange(1, 0.5);
glColorMask(0, 1, 0, 0);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
origglDrawElements(mode, count, type, indices);
glDepthRange(0.5, 1);
glColorMask(1, 1, 1, 1);
glDisable(GL_BLEND);
glPopMatrix();
glPopAttrib();
}
// bölümün taslağını çıkar
if (count >= 2500 && count <= 7000 && indices != 0 && count != 3939)//ultra ayarlar
{
glPushAttrib(GL_ALL_ATTRIB_BITS);
glPushMatrix();
glEnable(GL_BLEND);
glBlendFunc(GL_DST_COLOR, GL_ZERO);
glEnable(GL_LINE_SMOOTH);
glLineWidth(2);
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
origglDrawElements(mode, count, type, indices);
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
glDisable(GL_BLEND);
glPopMatrix();
glPopAttrib();
}
}
return origglDrawElements (mode, count, type, indices);
}
// =============================================================================================== //
bool yarrakye = false;
void HookFunction()
{
HMODULE ROSAMK = GetModuleHandle("opengl32.dll");
if (!yarrakye)
{
yarrakye = true;
if (ROSAMK)
{
origglDrawElements = (glDrawElements_t)(DWORD)GetProcAddress(ROSAMK, "glDrawElements");
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID &)origglDrawElements, newglDrawElements);
DetourTransactionCommit();
}
}
}
//BURADI DLLMAİN
BOOL WINAPI DllMain(HMODULE hModule,
DWORD dwReason,
LPVOID lpReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
HookFunction();
MessageBox(0, "[CengizHackers] Hile Aktif Edildi", "By Coder", MB_OK);
case DLL_PROCESS_DETACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
break;
}
return true;
}