Can someone check my code plz!

Posts 13 of 3 · Page 1 of 1
Can someone check my code plz!
Hello!

I made this code with a base from unknow (i dont know who)
but how i need to put it in C++ and are there some isues?

Maybe somone can help me?

thanks!


Code:
/*
base made by: unknow
edited by: Kip3300
*/

#include <windows.h>
#include <stdio.h>

//Addys//

#define Addr_Playerpointer 0xD284E8
#define Addr_Serverpointer 0xC24B10
#define NoSpawn1 0xBDDFD8
#define NoSpawn2 0xBDDFE0
#define NoSpawn3 0xBDDFDC
#define Slot5 0x1021A4
#define Ofs_Z 0x102D8
#define Ofs_nfd 0x103A4


//Defines//
DWORD *ingame= (DWORD*)Addr_Playerpointer;
DWORD *outgame= (DWORD*)Addr_Serverpointer;

//Source Codes//

void jump () //super jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+Ofs_Z) = 2000;
}
}
}

void nfd () //NFD
{
DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+Ofs_nfd) = -20000;
}
}

void Slots5 ()
{
DWORD dwPlayerPtr = *(DWORD*)Addr_Serverpointer;
if(dwPlayerPtr != 0)
{	
*(long*)(dwPlayerPtr+ Slot5) = 1;
}
}

void Spawn ()
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)NoSpawn1, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)NoSpawn1, &t , sizeof(t));
VirtualProtect((void*)NoSpawn1, sizeof(t), Protection, 0);

VirtualProtect((void*)NoSpawn2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)NoSpawn2, &t , sizeof(t));
VirtualProtect((void*)NoSpawn2, sizeof(t), Protection, 0);
}
//Hacktread//

void HackThread() 
{
for(;; ) 
{
if(*ingame) //All ingame Hacks like superjump,nfd,scoop etc.//
{
jump();
Spawn();
nfd();
Slots5();
}
if(*outgame)//All outgame hacks like Prmeium,supermaster etc.
{
Slots5();
}
}
Sleep(200); 
}

BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
MessageBoxA(NULL,"Hack by Ryski123","Merry Christmas",MB_OK);//
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0); 
break;
}
return TRUE;
}
-------------- Build: Debug in kip ---------------

Compiling: main.cpp
Linking dynamic library: bin\Debug\kip.dll
Creating library file: bin\Debug\libkip.dll.a
Output size is 26.65 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings

/good
thank you!
Posts 13 of 3 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?