- Yasaklandı
- #1
const keytr = require('keytr.js');
Banlı Üye
Rules of survival source wall hack kodunu veriyorum program dili c++ öncelikle c++ dilini seçiyoruz visual studio'dan sonra dll oluşturuyoruz ve kodları içine aktariyoruz kaydedip açiyoruz
C++:
#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ı terch ediniz!
{
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 MemoryMX = false;
void HookFunction()
{
HMODULE ROSAMK = GetModuleHandle("opengl32.dll");
if (!MemoryX)
{
memory = true;
if (ROSAMH)
{
origglDrawElements = (glDrawElements_t)(DWORD)GetProcAddress(ROSAMK, "glDrawElements");
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID &)origglDrawElements, newglDrawElements);
DetourTransactionCommit();
}
}
}
//BURASI DLL MAİN
BOOL WINAPI DllMain(HMODULE hModule,
DWORD dwReason,
LPVOID lpReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
HookFunction();
MessageBox(0, "[Memory Hackers] Hile Aktif!.", "Memory", MB_OK);
case DLL_PROCESS_DETACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
break;
}
return true;
}