Code doesn't work

Posts 1–15 of 48 · Page 1 of 4
Code doesn't work
Hi all, I've a problem with my little hack...I updated everything and removed most of the functions, but even if the injector says "Succesfully injected", it doesn't work. I thought it was cause of the addys, but I checked and they should be ok...
Code:
#include <windows.h>
#include <stdio.h>

//Addys

#define Addr_Playerpointer 0xB163D0
#define Ofs_NoFallDmg 0x102E8
#define ADR_Glasswall 0xB0FD2C
#define ADR_SuperNoSpread 0x8F19A8
#define Ofs_NoRecoil1 0xc444
#define Ofs_NoRecoil2 0xc448
#define Ofs_NoRecoil3 0xc44c
#define ADR_NOSPAWNWAIT1 0xBB29DC




DWORD *ingame= (DWORD*)Addr_Playerpointer;

/*================================*/

void playerhacks()
{
//norecoil
	
	DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
	if(dwPlayerPtr != 0)
	{
	*(float*)(dwPlayerPtr+Ofs_NoRecoil1) = 0;
	*(float*)(dwPlayerPtr+Ofs_NoRecoil2) = 0;
	*(float*)(dwPlayerPtr+Ofs_NoRecoil3) = 0;
	}
		
	
	//NFD

	if(dwPlayerPtr != 0)
	{
	*(float*)(dwPlayerPtr+Ofs_NoFallDmg) = -20000;
	}
		
	//No Spawn
	
	*(int*)ADR_NOSPAWNWAIT1 = 0;
		
	//GlassWall
	
	if(GetAsyncKeyState(VK_NUMPAD4)&1)
	{
	*(int*)(ADR_Glasswall) = 1;
	}
	if(GetAsyncKeyState(VK_NUMPAD5)&1)
	{
	*(int*)(ADR_Glasswall) = 0;
	}
		
	
	//No spread
	
	if(dwPlayerPtr != 0)
	{

	*(double*)ADR_SuperNoSpread = 0;
	}
}


void HackThread() 
{
for(;; ) 
{
if(*ingame)
{
playerhacks();
}
}
Sleep(200); 
}



BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
MessageBoxA(NULL,"Hack by Jonix","Creditz",MB_OK);//
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0); 
break;
}
return TRUE;
}
Apologies for the wrong section, I thought I had posted this in Warrock Hack Source...
If any mod/admin could move this I'd be grateful
Finally, someone who takes the time to write a decent topic! Goodjob on that buddy!

On topic: Well does your glasswall work if you press it?
If not try to check your playerpointer.
Alex_Agnew
I tried glasswalls ingame, but it doesn't work...Also the hack should display the message "hack by.." right before WarRock start loading files, but it just doesn't appear..
I've checked the playerpointer twice, will do again

Jhem Thank you both for your help guys
--EDIT--

It should be correct...but maybe I'm completely wrong, see this picture (Sorry I'm not allowed to post direct links or attach images)

Just copy paste on your browser and you can see the code in IdaPro and my address
i.imgur.com/IhdAtop.jpg
see.jpg432 KB · 12 downloads
Yeah, try to check your playerpointer.
Try it now.
I modified it a little, removed the unneccesary stuff to.

Code:
#include <windows.h>

//Addys
#define Addr_Playerpointer 0xB163D0
#define Ofs_NoFallDmg 0x102E8
#define ADR_Glasswall 0xB0FD2C
#define ADR_SuperNoSpread 0x8F19A8
#define Ofs_NoRecoil1 0xc444
#define Ofs_NoRecoil2 0xc448
#define Ofs_NoRecoil3 0xc44c
#define ADR_NOSPAWNWAIT1 0xBB29DC
/*================================*/

void playerhacks()
{
	//norecoil

	DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
	if (dwPlayerPtr != 0)
	{
		*(float*)(dwPlayerPtr + Ofs_NoRecoil1) = 0;
		*(float*)(dwPlayerPtr + Ofs_NoRecoil2) = 0;
		*(float*)(dwPlayerPtr + Ofs_NoRecoil3) = 0;

		//NFD
		*(float*)(dwPlayerPtr + Ofs_NoFallDmg) = -20000;

		//No Spawn
		*(int*)ADR_NOSPAWNWAIT1 = 0;

		//GlassWall
		if (GetAsyncKeyState(VK_NUMPAD4))
		{
			*(int*)(ADR_Glasswall) = 1;
		}
	
		if (GetAsyncKeyState(VK_NUMPAD5))
		{
			*(int*)(ADR_Glasswall) = 0;
		}

		//No spread
		*(double*)ADR_SuperNoSpread = 0;
	}
}


void HackThread()
{
	for (;;)
	{
		playerhacks();
	}
	Sleep(200);
}



BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
	switch (DWORD_GRUND)
	{
	case 1:
		MessageBoxA(NULL, "Hack by Jonix", "Creditz", MB_OK);//
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
		break;
	}
	return TRUE;
}
Let me know how it went!
It still doesn't work...the code is correct, but when it gets succesfully injected actually it's not. Does a wrong playerpointer addy do this?

EDIT

Tried with another injector and it crashes as soon as it's injected, what can it be?
i think your addys are wrong that's why it's not working.
then it is your addies. :/
Well that's what I think too, but the addys should be fine, I already found them correctly and the hack worked, that was a month ago. Could some software not allow the file to work properly?? Or maybe the dumping went wrong?? I'll dump it again...I have run out of ideas
Thank you all for your help again

--I've tried using Znoen Logger, it says succesfully injected but it shows no addys..
All of your addies are wrong Here / Addies by: Znoen

Code:
#define Addr_Playerpointer         0xB18F40
#define Ofs_NoFallDmg                0x102EC
#define ADR_Glasswall                 0xB1089C
#define ADR_SuperNoSpread       0x8F8908
#define Ofs_NoRecoil1                  0xC444
#define Ofs_NoRecoil2                  0xC448
#define Ofs_NoRecoil3                  0xC450
#define ADR_NOSPAWNWAIT1     0xC6B5F4
#define ADR_NOSPAWNWAIT2     0xC6B5F8
#define ADR_NOSPAWNWAIT3     0xC6B5FC
Thank you Dane, though I think these are for warrock int, I'm trying to work on a empty private server to do experience..

--Could it be the the said server has a self programmed anti cheat software? This would explain why it crashes, even if code and addys are okay
Quote Originally Posted by Jonix View Post
Thank you Dane, though I think these are for warrock int, I'm trying to work on a empty private server to do experience..

--Could it be the the said server has a self programmed anti cheat software? This would explain why it crashes, even if code and addys are okay
Depends on each server, each server may have diffrent code in them possible making hacks crash.
But that is highly unlikely.
What if you just try this:
Code:
void HackThread()
{
	for (;;)
	{
		if(GetAsyncKeyState(VK_HOME)&1){MessageBoxA(0,"The HackThread is looping!,0,0);}
	}
	Sleep(200);
}



BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
	switch (DWORD_GRUND)
	{
	case 1:
		MessageBoxA(NULL, "Hack by Jonix", "Creditz", MB_OK);//
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
		break;
	}
	return TRUE;
}
if you test this, en press the homekey ingame, does it display the message?
No, it doesn't, either it crashes after saying "Hack by Jonix", or the game starts but nothing works
Thank you for your help
Quote Originally Posted by Jonix View Post
No, it doesn't, either it crashes after saying "Hack by Jonix", or the game starts but nothing works
Thank you for your help
That means it's not the addies, it could be something else then.
If it crashes with an empty DLL so to speak, try using Release, instead of debug.
Posts 1–15 of 48 · Page 1 of 4

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us